You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2010/02/05 00:06:43 UTC
svn commit: r906720 -
/directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java
Author: seelmann
Date: Thu Feb 4 23:06:43 2010
New Revision: 906720
URL: http://svn.apache.org/viewvc?rev=906720&view=rev
Log:
Cast to BTreePartition only to allow other partition implementations (LDIF, HBase)
Modified:
directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java
Modified: directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java?rev=906720&r1=906719&r2=906720&view=diff
==============================================================================
--- directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java (original)
+++ directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java Thu Feb 4 23:06:43 2010
@@ -37,7 +37,7 @@
import org.apache.directory.server.core.entry.ClonedServerEntry;
import org.apache.directory.server.core.entry.ServerEntry;
import org.apache.directory.server.core.partition.Partition;
-import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition;
+import org.apache.directory.server.core.partition.impl.btree.BTreePartition;
import org.apache.directory.server.core.partition.ldif.LdifPartition;
import org.apache.directory.server.core.schema.SchemaPartition;
import org.apache.directory.server.i18n.I18n;
@@ -133,9 +133,9 @@
for( Partition p : partitions )
{
- if( p instanceof JdbmPartition )
+ if( p instanceof BTreePartition )
{
- ( ( JdbmPartition ) p ).setPartitionDir( new File( directoryService.getWorkingDirectory(), p.getId() ) );
+ ( ( BTreePartition ) p ).setPartitionDir( new File( directoryService.getWorkingDirectory(), p.getId() ) );
}
if( p.getSchemaManager() == null )
@@ -147,9 +147,9 @@
Partition sysPartition = directoryService.getSystemPartition();
- if( sysPartition instanceof JdbmPartition )
+ if( sysPartition instanceof BTreePartition )
{
- ( ( JdbmPartition ) sysPartition ).setPartitionDir( new File( directoryService.getWorkingDirectory(), sysPartition.getId() ) );
+ ( ( BTreePartition ) sysPartition ).setPartitionDir( new File( directoryService.getWorkingDirectory(), sysPartition.getId() ) );
}
if( sysPartition.getSchemaManager() == null )