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