Skip to content

Commit 6cfb037

Browse files
committed
fix
1 parent 371dbdd commit 6cfb037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/actiontech/dble/backend/datasource/PhysicalDatasource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void longIdleHeartBeat(ConcurrentLinkedQueue<BackendConnection> linkedQu
248248
break;
249249
} else if (con.isClosed()) {
250250
continue;
251-
} else if (!con.isBorrowed()) { //if the connection is idle for a long time
251+
} else if (con.getLastTime() < hearBeatTime) { //if the connection is idle for a long time
252252
con.setBorrowed(true);
253253
new ConnectionHeartBeatHandler().doHeartBeat(con);
254254
} else {

0 commit comments

Comments
 (0)