use of org.neo4j.storageengine.api.TransactionApplicationMode.RECOVERY in project neo4j by neo4j.
the class DefaultRecoverySPI method startRecovery.
@Override
public Visitor<CommittedTransactionRepresentation, Exception> startRecovery() {
// Calling this method means that recovery is required, tell storage engine about it
// This method will be called before recovery actually starts and so will ensure that
// each store is aware that recovery will be performed. At this point all the stores have
// already started btw.
// Go and read more at {@link CommonAbstractStore#deleteIdGenerator()}
storageEngine.prepareForRecoveryRequired();
transactionsToApply = new TransactionQueue(10_000, (first, last) -> storageEngine.apply(first, RECOVERY));
recoveryVisitor = new RecoveryVisitor(transactionsToApply);
return recoveryVisitor;
}
Aggregations