bug fixed

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@708 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-09 17:00:21 +00:00
parent 75ead281a3
commit fe8b5b292f
2 changed files with 51 additions and 1 deletions
@@ -838,7 +838,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
for (; iter.hasNext();) {
Map.Entry<PoolableConnection, ActiveConnectionTraceInfo> entry = iter.next();
ActiveConnectionTraceInfo activeInfo = entry.getValue();
long timeMillis = activeInfo.getConnectTime() - currentMillis;
long timeMillis = currentMillis - activeInfo.getConnectTime();
if (timeMillis >= removeAbandonedTimeoutMillis) {
PoolableConnection pooledConnection = entry.getKey();