directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1383146 - /directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Date Mon, 10 Sep 2012 22:50:25 GMT
Author: elecharny
Date: Mon Sep 10 22:50:25 2012
New Revision: 1383146

URL: http://svn.apache.org/viewvc?rev=1383146&view=rev
Log:
Only update the DN of an entry when it is not already set.

Modified:
    directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java

Modified: directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java?rev=1383146&r1=1383145&r2=1383146&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
(original)
+++ directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Mon Sep 10 22:50:25 2012
@@ -1171,8 +1171,11 @@ public abstract class AbstractBTreeParti
 
             if ( entry != null )
             {
-                // We have to store the DN in this entry
-                entry.setDn( dn );
+                // We have to store the DN in this entry, if it has no DN yet
+                if ( !dn.equals( entry.getDn() ) )
+                {
+                    entry.setDn( dn );
+                }
 
                 return new ClonedServerEntry( entry );
             }



Mime
View raw message