Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
raft.h: Update comment of struct raft_fsm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Borderé committed Jun 23, 2022
1 parent 09ba1b0 commit b64cbbc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions include/raft.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,20 +502,6 @@ struct raft_io
};

/*
* version 1:
* struct raft_fsm
* {
* int version;
* void *data;
* int (*apply)(struct raft_fsm *fsm,
* const struct raft_buffer *buf,
* void **result);
* int (*snapshot)(struct raft_fsm *fsm,
* struct raft_buffer *bufs[],
* unsigned *n_bufs);
* int (*restore)(struct raft_fsm *fsm, struct raft_buffer *buf);
* };
*
* version 2:
* introduces `snapshot_finalize`, when this method is not NULL, it will
* always run after a successful call to `snapshot`, whether the snapshot has
Expand All @@ -537,6 +523,7 @@ struct raft_fsm
struct raft_buffer *bufs[],
unsigned *n_bufs);
int (*restore)(struct raft_fsm *fsm, struct raft_buffer *buf);
/* Fields below added since version 2. */
int (*snapshot_finalize)(struct raft_fsm *fsm,
struct raft_buffer *bufs[],
unsigned *n_bufs);
Expand Down

0 comments on commit b64cbbc

Please sign in to comment.