Skip to content

Commit

Permalink
Merge pull request #9044 from tinwelint/3.0-lenient-log-reader
Browse files Browse the repository at this point in the history
Lenient transaction log reader
  • Loading branch information
chrisvest committed Mar 21, 2017
2 parents 0b81752 + 4dde51a commit 8b715da
Show file tree
Hide file tree
Showing 11 changed files with 674 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
import org.neo4j.storageengine.api.StorageEngine;
import org.neo4j.storageengine.api.StoreReadLayer;

import static org.neo4j.kernel.impl.transaction.log.entry.InvalidLogEntryHandler.STRICT;
import static org.neo4j.kernel.impl.transaction.log.pruning.LogPruneStrategyFactory.fromConfigValue;

public class NeoStoreDataSource implements Lifecycle, IndexProviders
Expand Down Expand Up @@ -448,7 +449,7 @@ public void start() throws IOException
indexConfigStore, updateableSchemaState::clear, legacyIndexTransactionOrdering );

LogEntryReader<ReadableClosablePositionAwareChannel> logEntryReader =
new VersionAwareLogEntryReader<>( storageEngine.commandReaderFactory() );
new VersionAwareLogEntryReader<>( storageEngine.commandReaderFactory(), STRICT );

TransactionIdStore transactionIdStore = dependencies.resolveDependency( TransactionIdStore.class );
LogVersionRepository logVersionRepository = dependencies.resolveDependency( LogVersionRepository.class );
Expand Down

0 comments on commit 8b715da

Please sign in to comment.