Skip to content

Commit

Permalink
GenericNativeIndexProvider is ExtensionType.DATABASE
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Jul 27, 2018
1 parent 2a3acb0 commit c7746b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.neo4j.kernel.impl.factory.OperationalMode;
import org.neo4j.kernel.impl.index.schema.GenericNativeIndexProviderFactory;

import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.NATIVE20;
import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.NATIVE_GBPTREE10;
import static org.neo4j.graphdb.factory.GraphDatabaseSettings.default_schema_provider;
import static org.neo4j.helpers.collection.MapUtil.stringMap;

Expand All @@ -38,7 +38,7 @@ public class GenericIndexProviderCompatibilitySuiteTest extends IndexProviderCom
protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir )
{
IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY;
Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE20.providerName() ) );
Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE_GBPTREE10.providerName() ) );
OperationalMode mode = OperationalMode.single;
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
return GenericNativeIndexProviderFactory.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.neo4j.kernel.api.index.IndexProvider;
import org.neo4j.kernel.api.index.LoggingMonitor;
import org.neo4j.kernel.configuration.Config;
import org.neo4j.kernel.extension.ExtensionType;
import org.neo4j.kernel.extension.KernelExtensionFactory;
import org.neo4j.kernel.impl.factory.OperationalMode;
import org.neo4j.kernel.impl.index.schema.fusion.FusionIndexProvider;
Expand All @@ -48,7 +49,7 @@ public class GenericNativeIndexProviderFactory extends KernelExtensionFactory<Ge

public GenericNativeIndexProviderFactory()
{
super( GenericNativeIndexProvider.KEY );
super( ExtensionType.DATABASE, GenericNativeIndexProvider.KEY );
}

public interface Dependencies
Expand Down

0 comments on commit c7746b2

Please sign in to comment.