use of org.neo4j.kernel.impl.storemigration.LogsUpgrader in project neo4j by neo4j.
the class StoreUpgraderInterruptionTestIT method newUpgrader.
private StoreUpgrader newUpgrader(StoreVersionCheck versionCheck, MigrationProgressMonitor progressMonitor, StoreMigrationParticipant... participants) {
Config config = Config.defaults(allow_upgrade, true);
Dependencies dependencies = new Dependencies();
dependencies.satisfyDependencies(new Monitors());
RecordStorageEngineFactory storageEngineFactory = new RecordStorageEngineFactory();
var databaseHealth = new DatabaseHealth(PanicEventGenerator.NO_OP, NullLog.getInstance());
LogsUpgrader logsUpgrader = new LogsUpgrader(fs, storageEngineFactory, workingDatabaseLayout, pageCache, legacyTransactionLogsLocator, config, dependencies, NULL, INSTANCE, databaseHealth, false);
StoreUpgrader upgrader = new StoreUpgrader(versionCheck, progressMonitor, config, fs, NullLogProvider.getInstance(), logsUpgrader, NULL);
for (StoreMigrationParticipant participant : participants) {
upgrader.addParticipant(participant);
}
return upgrader;
}
Aggregations