Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/raftexample: Save snapshot and WAL before hard state
Update raftexample to save the snapshot file and WAL snapshot entry before hardstate to ensure the snapshot exists during recovery. Otherwise if there is a failure after storing the hard state there may be reference to a non-existent snapshot. This PR introduces the fix from etcd-io#10219 to the raftexample.
- Loading branch information