directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1312048 - /directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Date Tue, 10 Apr 2012 23:47:49 GMT
Author: elecharny
Date: Tue Apr 10 23:47:48 2012
New Revision: 1312048

URL: http://svn.apache.org/viewvc?rev=1312048&view=rev
Log:
Closed a cursor in the revert method

Modified:
    directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java

Modified: directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1312048&r1=1312047&r2=1312048&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/branches/index-work/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Tue Apr 10 23:47:48 2012
@@ -1206,6 +1206,17 @@ public class DefaultDirectoryService imp
         {
             throw new LdapOperationException( e.getMessage(), e );
         }
+        finally
+        {
+            try
+            {
+                cursor.close();
+            }
+            catch ( Exception e )
+            {
+                throw new LdapOperationException( e.getMessage(), e );
+            }
+        }
 
         return changeLog.getCurrentRevision();
     }



Mime
View raw message