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:20:41 UTC

svn commit: r1309878 - /directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java

Author: elecharny
Date: Thu Apr  5 14:20:40 2012
New Revision: 1309878

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

Modified:
    directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java

Modified: directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java?rev=1309878&r1=1309877&r2=1309878&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java (original)
+++ directory/apacheds/branches/index-work/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java Thu Apr  5 14:20:40 2012
@@ -424,6 +424,8 @@ public class JdbmIndex<K, O> extends Abs
             // Remove the Key -> entryId from the index
             forward.remove( values.get().getValue(), entryId );
         }
+        
+        values.close();
 
         // Remove the id -> key from the reverse index
         if ( withReverse )