Skip to content
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...
1 parent 48dfe3d commit b42e1881a69f035dfb645d1e95f320b662f23f57 Emmanuel Lecharny committed Apr 11, 2012
View
2 ...tations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
@@ -156,6 +156,8 @@ public static DirectoryService createDS( CreateDS dsBuilder )
partitionFactory.addIndex( partition,
createIndex.attribute(), createIndex.cacheSize() );
}
+
+ partition.initialize();
}
else
{
View
1 ...otations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java
@@ -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.
Something went wrong with that request. Please try again.