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
change: reduce one unnecessary snapshot serialization
- Change: `get_current_snapshot()`: remove double-serialization:
convert MemStoreSnapshot to CurrentSnapshotData instead of serializing
MemStoreSnapshot:
Before:
```
MemStoreSnapshot.data = serialize(state-machine)
CurrentSnapshotData.data = serialize(MemStoreSnapshot)
```
After:
```
MemStoreSnapshot.data = serialize(state-machine)
CurrentSnapshotData.data = MemStoreSnapshot.data
```
when `finalize_snapshot_installation`, extract snapshot meta info from
`InstallSnapshotRequest`. Reduce one unnecessary deserialization.
- Change: InstallSnapshotRequest: merge `snapshot_id`, `last_log_id`,
`membership` into one field `meta`.
- Refactor: use SnapshotMeta(`snapshot_id`, `last_log_id`, `membership`) as
a container of metadata of a snapshot.
Reduce parameters.
- Refactor: remove redundent param `delete_through` from
`finalize_snapshot_installation`.
0 commit comments