directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1309875 - /directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java
Date Thu, 05 Apr 2012 14:18:53 GMT
Author: elecharny
Date: Thu Apr  5 14:18:53 2012
New Revision: 1309875

URL: http://svn.apache.org/viewvc?rev=1309875&view=rev
Log:
Closing a cursor after it has been used

Modified:
    directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java

Modified: directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java?rev=1309875&r1=1309874&r2=1309875&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java
(original)
+++ directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/impl/avl/AvlIndex.java
Thu Apr  5 14:18:53 2012
@@ -180,6 +180,8 @@ public class AvlIndex<K, O> extends Abst
                 Tuple<Long, K> tuple = cursor.get();
                 forward.remove( tuple.getValue(), id );
             }
+            
+            cursor.close();
     
             reverse.remove( id );
         }



Mime
View raw message