directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1058030 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java
Date Wed, 12 Jan 2011 09:26:28 GMT
Author: kayyagari
Date: Wed Jan 12 09:26:28 2011
New Revision: 1058030

URL: http://svn.apache.org/viewvc?rev=1058030&view=rev
Log:
o close the underlying cursors

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java?rev=1058030&r1=1058029&r2=1058030&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeCursor.java
Wed Jan 12 09:26:28 2011
@@ -305,4 +305,34 @@ public class OneLevelScopeCursor<ID exte
     {
         return scopeCursor.isElementReused() || ( dereferencedCursor != null && dereferencedCursor.isElementReused()
);
     }
+
+
+    @Override
+    public void close() throws Exception
+    {
+        scopeCursor.close();
+        
+        if ( dereferencedCursor != null )
+        {
+            dereferencedCursor.close();
+        }
+        
+        super.close();
+    }
+
+
+    @Override
+    public void close( Exception cause ) throws Exception
+    {
+        scopeCursor.close( cause );
+        
+        if ( dereferencedCursor != null )
+        {
+            dereferencedCursor.close( cause );
+        }
+        
+        super.close( cause );
+    }
+    
+    
 }
\ No newline at end of file



Mime
View raw message