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
Currently snapshot will be taken at the configured snapshot distance. How can force a snapshot at will?
creatsnapshot() requires snapshot "s". How to get this?
void create_snapshot(snapshot& s, async_result::handler_type& when_done)
The text was updated successfully, but these errors were encountered:
Currently, there is no way to create a snapshot at will. Your state machine can create snapshots anytime though, but those non-regular ones won't be used by NuRaft. It will be useful if there is an API like raft_server::create_snapshot(uint64_t log_idx). I will put it into the backlog.
I kind of solved it by setting snapshot distance to 1 and add my logic to chk_create_snapshot() to take decision on the snapshot at will. But API should be good. Thanks
Currently snapshot will be taken at the configured snapshot distance. How can force a snapshot at will?
creatsnapshot() requires snapshot "s". How to get this?
void create_snapshot(snapshot& s, async_result::handler_type& when_done)
The text was updated successfully, but these errors were encountered: