directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1137367 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Date Sun, 19 Jun 2011 13:30:23 GMT
Author: kayyagari
Date: Sun Jun 19 13:30:22 2011
New Revision: 1137367

URL: http://svn.apache.org/viewvc?rev=1137367&view=rev
Log:
o fixed an issue with storing the current context CSN (the if block was never getting executed
if the DS has a null CSN during startup)

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=1137367&r1=1137366&r2=1137367&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Sun Jun 19 13:30:22 2011
@@ -434,10 +434,11 @@ public class DefaultPartitionNexus exten
         // note that this modification shouldn't change the entryCSN value of ou=system entry
         try
         {
+            String currentCtxCsn = directoryService.getContextCsn();
             // update only if the CSN changes
-            if ( ( lastSyncedCtxCsn != null ) && !lastSyncedCtxCsn.equals( directoryService.getContextCsn()
) )
+            if ( ( currentCtxCsn != null ) && !currentCtxCsn.equals( lastSyncedCtxCsn
) )
             {
-                lastSyncedCtxCsn = directoryService.getContextCsn();
+                lastSyncedCtxCsn = currentCtxCsn;
 
                 Attribute contextCsnAt = mods.get( 0 ).getAttribute();
                 contextCsnAt.clear();



Mime
View raw message