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 9D78A9DB4 for ; Wed, 18 Apr 2012 16:58:09 +0000 (UTC) Received: (qmail 70606 invoked by uid 500); 18 Apr 2012 16:58:09 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 70561 invoked by uid 500); 18 Apr 2012 16:58:09 -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 70554 invoked by uid 99); 18 Apr 2012 16:58:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 16:58:09 +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; Wed, 18 Apr 2012 16:58:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 65E31238897A for ; Wed, 18 Apr 2012 16:57:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1327580 - /directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Date: Wed, 18 Apr 2012 16:57:48 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120418165748.65E31238897A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Wed Apr 18 16:57:47 2012 New Revision: 1327580 URL: http://svn.apache.org/viewvc?rev=1327580&view=rev Log: The index were rebuilt every time the server was started, because we were looking for the files using the AT name instead of their OID. Modified: directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Modified: directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java?rev=1327580&r1=1327579&r2=1327580&view=diff ============================================================================== --- directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java (original) +++ directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Wed Apr 18 16:57:47 2012 @@ -173,10 +173,11 @@ public class JdbmPartition extends Abstr // just to avoid another iteration for determining which is the new index for ( Index index : userIndices.values() ) { - allIndices.add( index.getAttribute().getOid() ); + String indexOid = index.getAttribute().getOid(); + allIndices.add( indexOid ); // take the part after removing .db from the - String name = index.getAttributeId() + JDBM_DB_FILE_EXTN; + String name = indexOid + JDBM_DB_FILE_EXTN; // if the name doesn't exist in the list of index DB files // this is a new index and we need to build it