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 2012/09/11 00:50:25 UTC
svn commit: r1383146 -
/directory/apacheds/branches/apacheds-mvbt/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
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 );
}