willemt / raft

C implementation of the Raft Consensus protocol, BSD licensed
Other
1.13k stars 271 forks source link

Add raft_cancel_snapshot(). #85

Closed yossigo closed 6 years ago

yossigo commented 6 years ago

This cancels the snapshot operation and reverts back to the state we were in before raft_begin_snapshot().

It is useful for cases where the snapshot operation fails. It is the caller's responsibility to make sure the FSM state remains intact of course.

willemt commented 6 years ago

thanks!