You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/04/05 16:18:53 UTC

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

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 );
         }