directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1130301 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
Date Wed, 01 Jun 2011 20:50:55 GMT
Author: kayyagari
Date: Wed Jun  1 20:50:55 2011
New Revision: 1130301

URL: http://svn.apache.org/viewvc?rev=1130301&view=rev
Log:
o use put() instead of add() to overwrite the 'entryParentId' attribute when an entry already
has it
  (this scenario raises only in cases of a partition implementation is backed by a wrapped
parition e.x LdifPartition)

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java?rev=1130301&r1=1130300&r2=1130301&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/AbstractStore.java
Wed Jun  1 20:50:55 2011
@@ -1011,7 +1011,7 @@ public abstract class AbstractStore<E, I
             }
         }
 
-        entry.add( SchemaConstants.ENTRY_PARENT_ID_AT, parentId.toString() );
+        entry.put( SchemaConstants.ENTRY_PARENT_ID_AT, parentId.toString() );
         
         master.put( id, entry );
 



Mime
View raw message