Skip to content

Commit f0e177d

Browse files
committed
fix use backend connection information
1 parent 9692728 commit f0e177d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/actiontech/dble/services/rwsplit/RWSplitHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void connectionClose(@NotNull AbstractService service, String reason) {
240240
loadDataClean();
241241
initDbClean();
242242
rwSplitService.getSession2().unbind();
243-
reason = "Connection {dbInstance[" + rwSplitService.getConnection().getHost() + ":" + rwSplitService.getConnection().getPort() + "],DbGroup[" +
243+
reason = "Connection {dbInstance[" + service.getConnection().getHost() + ":" + service.getConnection().getPort() + "],DbGroup[" +
244244
rwSplitService.getUserConfig().getDbGroup() + "],threadID[" +
245245
((MySQLResponseService) service).getConnection().getThreadId() + "]} was closed ,reason is [" + reason + "]";
246246
writeErrorMsg(rwSplitService.nextPacketId(), reason);

0 commit comments

Comments
 (0)