directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1403629 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
Date Tue, 30 Oct 2012 06:22:34 GMT
Author: kayyagari
Date: Tue Oct 30 06:22:33 2012
New Revision: 1403629

URL: http://svn.apache.org/viewvc?rev=1403629&view=rev
Log:
moved the storeCookie() method call into a finally block

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java?rev=1403629&r1=1403628&r2=1403629&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
Tue Oct 30 06:22:33 2012
@@ -708,18 +708,19 @@ public class ReplicationConsumerImpl imp
             LOG.info( "Connection closed for the server {}", config.getRemoteHost() );
 
             connection = null;
-
-            // persist the cookie
-            storeCookie();
-
-            // reset the cookie
-            syncCookie = null;
         }
         catch ( Exception e )
         {
             LOG.error( "Failed to close the connection", e );
         }
-
+        finally
+        {
+            // persist the cookie
+            storeCookie();
+            
+            // reset the cookie
+            syncCookie = null;
+        }
     }
 
 



Mime
View raw message