You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/04/12 01:15:59 UTC

svn commit: r1325060 - in /directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory: DSAnnotationProcessor.java JdbmPartitionFactory.java

Author: elecharny
Date: Wed Apr 11 23:15:58 2012
New Revision: 1325060

URL: http://svn.apache.org/viewvc?rev=1325060&view=rev
Log:
o Moved the partition initialization out of the JdbmParitionFactory.createPartition() method. It's now called explicitely after the partition creation.

Modified:
    directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
    directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java

Modified: directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java?rev=1325060&r1=1325059&r2=1325060&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java (original)
+++ directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/DSAnnotationProcessor.java Wed Apr 11 23:15:58 2012
@@ -156,6 +156,8 @@ public class DSAnnotationProcessor
                     partitionFactory.addIndex( partition,
                         createIndex.attribute(), createIndex.cacheSize() );
                 }
+
+                partition.initialize();
             }
             else
             {

Modified: directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java?rev=1325060&r1=1325059&r2=1325060&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java (original)
+++ directory/apacheds/branches/index-work/core-annotations/src/main/java/org/apache/directory/server/core/factory/JdbmPartitionFactory.java Wed Apr 11 23:15:58 2012
@@ -51,7 +51,6 @@ public class JdbmPartitionFactory implem
         partition.setSuffixDn( new Dn( suffix ) );
         partition.setCacheSize( 500 );
         partition.setPartitionPath( workingDirectory.toURI() );
-        partition.initialize();
 
         return partition;
     }