directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r778789 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Date Tue, 26 May 2009 16:37:10 GMT
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();
         



Mime
View raw message