feature:add active test flag

This commit is contained in:
tanyawen
2019-12-31 15:28:43 +08:00
parent 70599a1656
commit f742f3c6aa
3 changed files with 38 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ public class ConnectionPool {
ConnectionManager connectionManager = CP.get(key);
if (connectionManager != null) {
connectionManager.closeConnection(connection);
connectionManager.setActiveTestFlag();
} else {
connection.closeDirectly();
}