You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, `RaftStateMachine::install_snapshot()` was responsible for
two tasks:
- Replacing the state machine with the given snapshot.
- Persisting the snapshot to disk.
This commit introduces a new method,
`RaftStateMachine::save_snapshot()`, to handle the task of
persisting snapshots. With this change:
- `install_snapshot()` no longer needs to persist snapshots, though it
can still do so without causing harm.
- The responsibility for persisting snapshots is now clearly separated.
- Part of #1333
Upgrade tip:
- Implement snapshot persistence logic in the new `save_snapshot()`
method.
- It is recommended to remove snapshot persistence logic from
`install_snapshot()` for better separation of concerns.
0 commit comments