Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81357DCE1 for ; Sat, 11 Aug 2012 04:16:22 +0000 (UTC) Received: (qmail 27894 invoked by uid 500); 11 Aug 2012 04:16:22 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 27787 invoked by uid 500); 11 Aug 2012 04:16:20 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 27748 invoked by uid 99); 11 Aug 2012 04:16:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 04:16:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 04:16:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4967F238889B for ; Sat, 11 Aug 2012 04:15:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: gokturk@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120811041534.4967F238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 ); }