commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1163823 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Date Wed, 31 Aug 2011 21:24:24 GMT
Author: markt
Date: Wed Aug 31 21:24:23 2011
New Revision: 1163823

URL: http://svn.apache.org/viewvc?rev=1163823&view=rev
Log:
Align GKOP with GOP and r1163741

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java?rev=1163823&r1=1163822&r2=1163823&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
Wed Aug 31 21:24:23 2011
@@ -1319,7 +1319,8 @@ public class GenericKeyedObjectPool<K,T>
             throws Exception {
         
         register(key);
-        
+        toDestory.invalidate();
+
         try {
             ObjectDeque<T> objectDeque = poolMap.get(key);
             boolean isIdle = objectDeque.getIdleObjects().remove(toDestory);



Mime
View raw message