directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1371868 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Date Sat, 11 Aug 2012 04:15:34 GMT
Author: gokturk
Date: Sat Aug 11 04:15:33 2012
New Revision: 1371868

URL: http://svn.apache.org/viewvc?rev=1371868&view=rev
Log:
*Fix to updateCsnIndex which was leaving the old Csn in place because it was removing the
tuple which is keyed to new Csn value.

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

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java?rev=1371868&r1=1371867&r2=1371868&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
Sat Aug 11 04:15:33 2012
@@ -1991,7 +1991,7 @@ public abstract class AbstractBTreeParti
     private void updateCsnIndex( Entry entry, ID id ) throws Exception
     {
         String entryCsn = entry.get( SchemaConstants.ENTRY_CSN_AT ).getString();
-        entryCsnIdx.drop( entryCsn, id );
+        entryCsnIdx.drop( id );
         entryCsnIdx.add( entryCsn, id );
     }
 



Mime
View raw message