You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/05/26 18:37:10 UTC

svn commit: r778789 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Author: elecharny
Date: Tue May 26 16:37:10 2009
New Revision: 778789

URL: http://svn.apache.org/viewvc?rev=778789&view=rev
Log:
Applied Andrea's patch for DIRSERVER-1344

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=778789&r1=778788&r2=778789&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 Tue May 26 16:37:10 2009
@@ -428,7 +428,11 @@
         CoreSession adminSession = new DefaultCoreSession( 
             new LdapPrincipal( adminDn, AuthenticationLevel.STRONG ), directoryService );
         AddOperationContext addOperationContext = new AddOperationContext( adminSession, systemEntry );
-        system.add( addOperationContext );
+        
+        if ( !system.hasEntry( new EntryOperationContext( adminSession, systemEntry.getDn() ) ) )
+        {
+            system.add( addOperationContext );
+        }
         
         String key = system.getSuffixDn().toString();