directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1164721 - /directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java
Date Fri, 02 Sep 2011 21:44:48 GMT
Author: seelmann
Date: Fri Sep  2 21:44:48 2011
New Revision: 1164721

URL: http://svn.apache.org/viewvc?rev=1164721&view=rev
Log:
Forgot to close cursors

Modified:
    directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java

Modified: directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java?rev=1164721&r1=1164720&r2=1164721&view=diff
==============================================================================
--- directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java
(original)
+++ directory/apacheds/branches/one-sub-level-index-removal/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/RdnIndexTreeCursor.java
Fri Sep  2 21:44:48 2011
@@ -348,6 +348,29 @@ public class RdnIndexTreeCursor<E, ID ex
         return entry;
     }
 
+
+    @Override
+    public void close() throws Exception
+    {
+        super.close();
+        while ( cursors.size() > 0 )
+        {
+            cursors.closeCurrentCursor();
+        }
+    }
+
+
+    @Override
+    public void close( Exception cause ) throws Exception
+    {
+        super.close( cause );
+        while ( cursors.size() > 0 )
+        {
+            cursors.closeCurrentCursor();
+        }
+    }
+
+
     @Override
     protected String getUnsupportedMessage()
     {



Mime
View raw message