@Override public void syncWithSnapshot(long lastSnapshotIndex) { fileLogWorker.syncWithSnapshot(lastSnapshotIndex); // TODO purge log files and normal/tmp/corrupt snapshot files // if the last index in snapshot is larger than the index of the last // log entry, we should delete all the log entries and their cache to avoid // gaps between log segments. }
@Override public void syncWithSnapshot(long lastSnapshotIndex) { fileLogWorker.syncWithSnapshot(lastSnapshotIndex); // TODO purge log files and normal/tmp/corrupt snapshot files // if the last index in snapshot is larger than the index of the last // log entry, we should delete all the log entries and their cache to avoid // gaps between log segments. }