logic bug
This commit is contained in:
parent
b52c31efa4
commit
ef32237363
Binary file not shown.
@ -56,14 +56,14 @@ public class ThreadBasedConnectPool<T> {
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean checkRet = false;
|
||||
boolean checkPass = false;
|
||||
try {
|
||||
checkRet = check(entry.getValue().getObject());
|
||||
checkPass = check(entry.getValue().getObjectForCheck());
|
||||
} catch (Exception e) {
|
||||
checkRet = false;
|
||||
checkPass = false;
|
||||
}
|
||||
|
||||
if (checkRet) {
|
||||
if ( ! checkPass) {
|
||||
log.debug("一个链接检查未通过");
|
||||
// 检查未通过
|
||||
it.remove();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user