Permalink
Browse files

o Moved the partition initialization out of the JdbmParitionFactory.c…

…reatePartition() method. It's now called explicitely after the partition creation.

git-svn-id: https://svn.apache.org/repos/asf/directory/apacheds/branches/index-work@1325060 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
elecharny committed Apr 11, 2012
1 parent 48dfe3d commit b42e1881a69f035dfb645d1e95f320b662f23f57
@@ -156,6 +156,8 @@ public static DirectoryService createDS( CreateDS dsBuilder )
partitionFactory.addIndex( partition,
createIndex.attribute(), createIndex.cacheSize() );
}
+
+ partition.initialize();
}
else
{
@@ -51,7 +51,6 @@ public JdbmPartition createPartition( SchemaManager schemaManager, String id, St
partition.setSuffixDn( new Dn( suffix ) );
partition.setCacheSize( 500 );
partition.setPartitionPath( workingDirectory.toURI() );
- partition.initialize();
return partition;
}

0 comments on commit b42e188

Please sign in to comment.