Skip to content

Commit

Permalink
PR comment: Change method name SchemaIndex#providerName -> SchemaInde…
Browse files Browse the repository at this point in the history
…x#providerIdentifier
  • Loading branch information
burqen committed Jul 27, 2018
1 parent 01e0002 commit a313086
Show file tree
Hide file tree
Showing 24 changed files with 43 additions and 39 deletions.
Expand Up @@ -252,7 +252,7 @@ public void oldLuceneSchemaIndexShouldBeConsideredConsistentWithFusionProvider()
String propKey = "propKey"; String propKey = "propKey";


// Given a lucene index // Given a lucene index
GraphDatabaseService db = getGraphDatabaseService( storeDir, defaultSchemaProvider, LUCENE10.providerName() ); GraphDatabaseService db = getGraphDatabaseService( storeDir, defaultSchemaProvider, LUCENE10.providerIdentifier() );
createIndex( db, label, propKey ); createIndex( db, label, propKey );
try ( Transaction tx = db.beginTx() ) try ( Transaction tx = db.beginTx() )
{ {
Expand All @@ -264,7 +264,7 @@ public void oldLuceneSchemaIndexShouldBeConsideredConsistentWithFusionProvider()


ConsistencyCheckService service = new ConsistencyCheckService(); ConsistencyCheckService service = new ConsistencyCheckService();
Config configuration = Config configuration =
Config.defaults( settings( defaultSchemaProvider, NATIVE20.providerName() ) ); Config.defaults( settings( defaultSchemaProvider, NATIVE20.providerIdentifier() ) );
Result result = runFullConsistencyCheck( service, configuration, testDirectory.databaseDir() ); Result result = runFullConsistencyCheck( service, configuration, testDirectory.databaseDir() );
assertTrue( result.isSuccessful() ); assertTrue( result.isSuccessful() );
} }
Expand Down
Expand Up @@ -245,7 +245,7 @@ private static void createDatabaseWithNativeIndexes( File storeDir, String datab
{ {
GraphDatabaseService db = GraphDatabaseService db =
new TestGraphDatabaseFactory().newEmbeddedDatabaseBuilder( storeDir ) new TestGraphDatabaseFactory().newEmbeddedDatabaseBuilder( storeDir )
.setConfig( default_schema_provider, schemaIndex.providerName() ) .setConfig( default_schema_provider, schemaIndex.providerIdentifier() )
.setConfig( active_database, databaseName ) .setConfig( active_database, databaseName )
.newGraphDatabase(); .newGraphDatabase();
String key = "key-" + schemaIndex.name(); String key = "key-" + schemaIndex.name();
Expand Down
Expand Up @@ -177,12 +177,12 @@ private static IndexProvider selectIndexProvider( PageCache pageCache, File data
{ {
String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider ); String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider );
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
if ( LUCENE10.providerName().equals( defaultSchemaProvider ) ) if ( LUCENE10.providerIdentifier().equals( defaultSchemaProvider ) )
{ {
return LuceneIndexProviderFactory return LuceneIndexProviderFactory
.newInstance( pageCache, databaseDirectory, fs, monitor, config, operationalMode, recoveryCleanupWorkCollector ); .newInstance( pageCache, databaseDirectory, fs, monitor, config, operationalMode, recoveryCleanupWorkCollector );
} }
else if ( NATIVE10.providerName().equals( defaultSchemaProvider ) ) else if ( NATIVE10.providerIdentifier().equals( defaultSchemaProvider ) )
{ {
return NativeLuceneFusionIndexProviderFactory10 return NativeLuceneFusionIndexProviderFactory10
.create( pageCache, databaseDirectory, fs, monitor, config, operationalMode, recoveryCleanupWorkCollector ); .create( pageCache, databaseDirectory, fs, monitor, config, operationalMode, recoveryCleanupWorkCollector );
Expand Down
Expand Up @@ -63,7 +63,7 @@ public void shouldUseConfiguredIndexProviderLucene() throws IndexNotFoundKernelE
{ {
// given // given
GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider, GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider,
GraphDatabaseSettings.SchemaIndex.LUCENE10.providerName() ).newGraphDatabase(); GraphDatabaseSettings.SchemaIndex.LUCENE10.providerIdentifier() ).newGraphDatabase();


// when // when
createIndex( db ); createIndex( db );
Expand All @@ -77,7 +77,7 @@ public void shouldUseConfiguredIndexProviderNative10() throws IndexNotFoundKerne
{ {
// given // given
GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider, GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider,
GraphDatabaseSettings.SchemaIndex.NATIVE10.providerName() ).newGraphDatabase(); GraphDatabaseSettings.SchemaIndex.NATIVE10.providerIdentifier() ).newGraphDatabase();


// when // when
createIndex( db ); createIndex( db );
Expand All @@ -91,7 +91,7 @@ public void shouldUseConfiguredIndexProviderNative20() throws IndexNotFoundKerne
{ {
// given // given
GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider, GraphDatabaseService db = dbBuilder.setConfig( GraphDatabaseSettings.default_schema_provider,
GraphDatabaseSettings.SchemaIndex.NATIVE20.providerName() ).newGraphDatabase(); GraphDatabaseSettings.SchemaIndex.NATIVE20.providerIdentifier() ).newGraphDatabase();


// when // when
createIndex( db ); createIndex( db );
Expand Down
Expand Up @@ -50,7 +50,7 @@ public class FusionIndexIT
{ {
@Rule @Rule
public DatabaseRule db = new EmbeddedDatabaseRule() public DatabaseRule db = new EmbeddedDatabaseRule()
.withSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerName() ); .withSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerIdentifier() );


private File databaseDirectory; private File databaseDirectory;
private final Label label = Label.label( "label" ); private final Label label = Label.label( "label" );
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class FusionIndexProvider10CompatibilitySuiteTest extends IndexProviderCo
protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir ) protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir )
{ {
IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY; IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY;
Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE10.providerName() ) ); Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE10.providerIdentifier() ) );
OperationalMode mode = OperationalMode.single; OperationalMode mode = OperationalMode.single;
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
return NativeLuceneFusionIndexProviderFactory10.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector ); return NativeLuceneFusionIndexProviderFactory10.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector );
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class FusionIndexProvider20CompatibilitySuiteTest extends IndexProviderCo
protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir ) protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir )
{ {
IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY; 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(), NATIVE20.providerIdentifier() ) );
OperationalMode mode = OperationalMode.single; OperationalMode mode = OperationalMode.single;
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
return NativeLuceneFusionIndexProviderFactory20.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector ); return NativeLuceneFusionIndexProviderFactory20.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector );
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class LuceneIndexProviderCompatibilitySuiteTest extends IndexProviderComp
protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir ) protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir )
{ {
IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY; IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY;
Config config = Config.defaults( stringMap( default_schema_provider.name(), LUCENE10.providerName() ) ); Config config = Config.defaults( stringMap( default_schema_provider.name(), LUCENE10.providerIdentifier() ) );
OperationalMode mode = OperationalMode.single; OperationalMode mode = OperationalMode.single;
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
return LuceneIndexProviderFactory.newInstance( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector ); return LuceneIndexProviderFactory.newInstance( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector );
Expand Down
Expand Up @@ -91,7 +91,7 @@ void shouldCreateWithSpecificExistingProviderName( IndexCreator creator ) throws
{ {
// given // given
SchemaWrite schemaWrite = schemaWriteInNewTransaction(); SchemaWrite schemaWrite = schemaWriteInNewTransaction();
String provider = indexSetting.providerName(); String provider = indexSetting.providerIdentifier();
LabelSchemaDescriptor descriptor = forLabel( labelId++, 0 ); LabelSchemaDescriptor descriptor = forLabel( labelId++, 0 );
creator.create( schemaWrite, descriptor, provider ); creator.create( schemaWrite, descriptor, provider );


Expand Down
Expand Up @@ -58,7 +58,7 @@ public class NativeStringIndexingIT


@Rule @Rule
public final DatabaseRule db = new EmbeddedDatabaseRule() public final DatabaseRule db = new EmbeddedDatabaseRule()
.withSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerName() ); .withSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerIdentifier() );
@Rule @Rule
public final RandomRule random = new RandomRule(); public final RandomRule random = new RandomRule();


Expand Down
Expand Up @@ -29,7 +29,7 @@ public class NodeValueIndexCursorLuceneTest extends AbstractNodeValueIndexCursor
public ReadTestSupport newTestSupport() public ReadTestSupport newTestSupport()
{ {
ReadTestSupport readTestSupport = new ReadTestSupport(); ReadTestSupport readTestSupport = new ReadTestSupport();
readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, LUCENE10.providerName() ); readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, LUCENE10.providerIdentifier() );
return readTestSupport; return readTestSupport;
} }


Expand Down
Expand Up @@ -27,7 +27,7 @@ public class NodeValueIndexCursorNative10Test extends AbstractNodeValueIndexCurs
public ReadTestSupport newTestSupport() public ReadTestSupport newTestSupport()
{ {
ReadTestSupport readTestSupport = new ReadTestSupport(); ReadTestSupport readTestSupport = new ReadTestSupport();
readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE10.providerName() ); readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE10.providerIdentifier() );
return readTestSupport; return readTestSupport;
} }


Expand Down
Expand Up @@ -27,7 +27,7 @@ public class NodeValueIndexCursorNative20Test extends AbstractNodeValueIndexCurs
public ReadTestSupport newTestSupport() public ReadTestSupport newTestSupport()
{ {
ReadTestSupport readTestSupport = new ReadTestSupport(); ReadTestSupport readTestSupport = new ReadTestSupport();
readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerName() ); readTestSupport.addSetting( GraphDatabaseSettings.default_schema_provider, GraphDatabaseSettings.SchemaIndex.NATIVE20.providerIdentifier() );
return readTestSupport; return readTestSupport;
} }


Expand Down
Expand Up @@ -38,7 +38,7 @@ public class GenericIndexProviderCompatibilitySuiteTest extends IndexProviderCom
protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir ) protected IndexProvider createIndexProvider( PageCache pageCache, FileSystemAbstraction fs, File graphDbDir )
{ {
IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY; IndexProvider.Monitor monitor = IndexProvider.Monitor.EMPTY;
Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE_GBPTREE10.providerName() ) ); Config config = Config.defaults( stringMap( default_schema_provider.name(), NATIVE_GBPTREE10.providerIdentifier() ) );
OperationalMode mode = OperationalMode.single; OperationalMode mode = OperationalMode.single;
RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE; RecoveryCleanupWorkCollector recoveryCleanupWorkCollector = RecoveryCleanupWorkCollector.IMMEDIATE;
return GenericNativeIndexProviderFactory.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector ); return GenericNativeIndexProviderFactory.create( pageCache, graphDbDir, fs, monitor, config, mode, recoveryCleanupWorkCollector );
Expand Down
Expand Up @@ -82,7 +82,7 @@ public BatchInsertIndexProviderTest( GraphDatabaseSettings.SchemaIndex schemaInd
@Test @Test
public void batchInserterShouldUseConfiguredIndexProvider() throws Exception public void batchInserterShouldUseConfiguredIndexProvider() throws Exception
{ {
Map<String,String> config = stringMap( default_schema_provider.name(), schemaIndex.providerName() ); Map<String,String> config = stringMap( default_schema_provider.name(), schemaIndex.providerIdentifier() );
BatchInserter inserter = newBatchInserter( config ); BatchInserter inserter = newBatchInserter( config );
inserter.createDeferredSchemaIndex( TestLabels.LABEL_ONE ).on( "key" ).create(); inserter.createDeferredSchemaIndex( TestLabels.LABEL_ONE ).on( "key" ).create();
inserter.shutdown(); inserter.shutdown();
Expand All @@ -97,8 +97,8 @@ public void batchInserterShouldUseConfiguredIndexProvider() throws Exception
int labelId = tokenRead.nodeLabel( TestLabels.LABEL_ONE.name() ); int labelId = tokenRead.nodeLabel( TestLabels.LABEL_ONE.name() );
int propertyId = tokenRead.propertyKey( "key" ); int propertyId = tokenRead.propertyKey( "key" );
IndexReference index = schemaRead.index( labelId, propertyId ); IndexReference index = schemaRead.index( labelId, propertyId );
assertTrue( unexpectedIndexProviderMessage( index ), schemaIndex.providerName().contains( index.providerKey() ) ); assertTrue( unexpectedIndexProviderMessage( index ), schemaIndex.providerIdentifier().contains( index.providerKey() ) );
assertTrue( unexpectedIndexProviderMessage( index ), schemaIndex.providerName().contains( index.providerVersion() ) ); assertTrue( unexpectedIndexProviderMessage( index ), schemaIndex.providerIdentifier().contains( index.providerVersion() ) );
tx.success(); tx.success();
} }
finally finally
Expand Down
Expand Up @@ -155,7 +155,7 @@ public void scanStoreMustLogCrashPointerCleanupDuringRecovery() throws Exception
public void nativeIndexMustLogCrashPointerCleanupDuringRecovery() throws Exception public void nativeIndexMustLogCrashPointerCleanupDuringRecovery() throws Exception
{ {
// given // given
setTestConfig( GraphDatabaseSettings.default_schema_provider, NATIVE20.providerName() ); setTestConfig( GraphDatabaseSettings.default_schema_provider, NATIVE20.providerIdentifier() );
dirtyDatabase(); dirtyDatabase();


// when // when
Expand Down
Expand Up @@ -50,6 +50,10 @@
import org.neo4j.logging.Level; import org.neo4j.logging.Level;
import org.neo4j.logging.LogTimeZone; import org.neo4j.logging.LogTimeZone;


import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.LUCENE10;
import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.NATIVE10;
import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.NATIVE20;
import static org.neo4j.graphdb.factory.GraphDatabaseSettings.SchemaIndex.NATIVE_GBPTREE10;
import static org.neo4j.kernel.configuration.Settings.BOOLEAN; import static org.neo4j.kernel.configuration.Settings.BOOLEAN;
import static org.neo4j.kernel.configuration.Settings.BYTES; import static org.neo4j.kernel.configuration.Settings.BYTES;
import static org.neo4j.kernel.configuration.Settings.DEFAULT; import static org.neo4j.kernel.configuration.Settings.DEFAULT;
Expand Down Expand Up @@ -567,7 +571,7 @@ public enum SchemaIndex
this.providerName = providerName; this.providerName = providerName;
} }


public String providerName() public String providerIdentifier()
{ {
return providerName; return providerName;
} }
Expand Down Expand Up @@ -595,8 +599,8 @@ public String providerName()
"- Controllable memory usage, due to being bound by the page cache" ) "- Controllable memory usage, due to being bound by the page cache" )
public static final Setting<String> default_schema_provider = public static final Setting<String> default_schema_provider =
setting( "dbms.index.default_schema_provider", setting( "dbms.index.default_schema_provider",
optionsIgnoreCase( SchemaIndex.NATIVE20.providerName(), SchemaIndex.NATIVE10.providerName(), SchemaIndex.LUCENE10.providerName(), optionsIgnoreCase( NATIVE20.providerIdentifier(), NATIVE10.providerIdentifier(), LUCENE10.providerIdentifier(),
SchemaIndex.NATIVE_GBPTREE10.providerName() ), NATIVE_GBPTREE10.providerIdentifier() ),
null ); null );


@Description( "Location where Neo4j keeps the logical transaction logs." ) @Description( "Location where Neo4j keeps the logical transaction logs." )
Expand Down
Expand Up @@ -127,7 +127,7 @@ public void setValueWithOldSetting( String value, Map<String,String> rawConfigur
if ( value.equals( Settings.FALSE ) ) if ( value.equals( Settings.FALSE ) )
{ {
rawConfiguration.putIfAbsent( GraphDatabaseSettings.default_schema_provider.name(), rawConfiguration.putIfAbsent( GraphDatabaseSettings.default_schema_provider.name(),
GraphDatabaseSettings.SchemaIndex.LUCENE10.providerName() ); GraphDatabaseSettings.SchemaIndex.LUCENE10.providerIdentifier() );
} }
} }
} ); } );
Expand Down
Expand Up @@ -88,7 +88,7 @@ public static GenericNativeIndexProvider create( PageCache pageCache, File store
{ {
String selectedSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider ); String selectedSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider );
int priority = PRIORITY; int priority = PRIORITY;
if ( GraphDatabaseSettings.SchemaIndex.NATIVE_GBPTREE10.providerName().equals( selectedSchemaProvider ) ) if ( GraphDatabaseSettings.SchemaIndex.NATIVE_GBPTREE10.providerIdentifier().equals( selectedSchemaProvider ) )
{ {
priority = 100; priority = 100;
} }
Expand Down
Expand Up @@ -172,28 +172,28 @@ public void migrateEnableNativeSchemaIndex()
{ {
Map<String,String> migratedProperties = migrator.apply( stringMap( "unsupported.dbms.enable_native_schema_index", "false" ), getLog() ); Map<String,String> migratedProperties = migrator.apply( stringMap( "unsupported.dbms.enable_native_schema_index", "false" ), getLog() );
assertEquals( "Old property should be migrated to new", assertEquals( "Old property should be migrated to new",
migratedProperties, stringMap( "dbms.index.default_schema_provider", LUCENE10.providerName() )); migratedProperties, stringMap( "dbms.index.default_schema_provider", LUCENE10.providerIdentifier() ));


assertContainsWarningMessage("unsupported.dbms.enable_native_schema_index has been replaced with dbms.index.default_schema_provider."); assertContainsWarningMessage("unsupported.dbms.enable_native_schema_index has been replaced with dbms.index.default_schema_provider.");
} }


@Test @Test
public void skipMigrationOfEnableNativeSchemaIndexIfNotPresent() public void skipMigrationOfEnableNativeSchemaIndexIfNotPresent()
{ {
Map<String,String> migratedProperties = migrator.apply( stringMap( "dbms.index.default_schema_provider", NATIVE10.providerName() ), getLog() ); Map<String,String> migratedProperties = migrator.apply( stringMap( "dbms.index.default_schema_provider", NATIVE10.providerIdentifier() ), getLog() );
assertEquals( "Nothing to migrate", migratedProperties, stringMap( "dbms.index.default_schema_provider", NATIVE10.providerName() ) ); assertEquals( "Nothing to migrate", migratedProperties, stringMap( "dbms.index.default_schema_provider", NATIVE10.providerIdentifier() ) );
logProvider.assertNoLoggingOccurred(); logProvider.assertNoLoggingOccurred();
} }


@Test @Test
public void skipMigrationOfEnableNativeSchemaIndexIfDefaultSchemaIndexConfigured() public void skipMigrationOfEnableNativeSchemaIndexIfDefaultSchemaIndexConfigured()
{ {
Map<String,String> migratedProperties = migrator.apply( stringMap( Map<String,String> migratedProperties = migrator.apply( stringMap(
"dbms.index.default_schema_provider", NATIVE10.providerName(), "dbms.index.default_schema_provider", NATIVE10.providerIdentifier(),
"unsupported.dbms.enable_native_schema_index", "false" "unsupported.dbms.enable_native_schema_index", "false"
), getLog() ); ), getLog() );
assertEquals( "Should keep pre configured default schema index.", assertEquals( "Should keep pre configured default schema index.",
migratedProperties, stringMap( "dbms.index.default_schema_provider", NATIVE10.providerName() ) ); migratedProperties, stringMap( "dbms.index.default_schema_provider", NATIVE10.providerIdentifier() ) );
assertContainsWarningMessage(); assertContainsWarningMessage();
} }


Expand Down
Expand Up @@ -108,7 +108,7 @@ public static FusionIndexProvider newInstance( PageCache pageCache, File databas


String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider ); String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider );
int priority = LuceneIndexProvider.PRIORITY; int priority = LuceneIndexProvider.PRIORITY;
if ( GraphDatabaseSettings.SchemaIndex.LUCENE10.providerName().equals( defaultSchemaProvider ) ) if ( GraphDatabaseSettings.SchemaIndex.LUCENE10.providerIdentifier().equals( defaultSchemaProvider ) )
{ {
priority = 100; priority = 100;
} }
Expand Down
Expand Up @@ -89,7 +89,7 @@ public static FusionIndexProvider create( PageCache pageCache, File databaseDire


String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider ); String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider );
int priority = PRIORITY; int priority = PRIORITY;
if ( GraphDatabaseSettings.SchemaIndex.NATIVE10.providerName().equals( defaultSchemaProvider ) ) if ( GraphDatabaseSettings.SchemaIndex.NATIVE10.providerIdentifier().equals( defaultSchemaProvider ) )
{ {
priority = 100; priority = 100;
} }
Expand Down
Expand Up @@ -91,7 +91,7 @@ public static FusionIndexProvider create( PageCache pageCache, File databaseDire


String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider ); String defaultSchemaProvider = config.get( GraphDatabaseSettings.default_schema_provider );
int priority = PRIORITY; int priority = PRIORITY;
if ( GraphDatabaseSettings.SchemaIndex.NATIVE20.providerName().equals( defaultSchemaProvider ) ) if ( GraphDatabaseSettings.SchemaIndex.NATIVE20.providerIdentifier().equals( defaultSchemaProvider ) )
{ {
priority = 100; priority = 100;
} }
Expand Down

0 comments on commit a313086

Please sign in to comment.