From b64cbbcc1221d1a14a53ae0080ef8c4d5177d6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Border=C3=A9?= Date: Thu, 23 Jun 2022 10:20:29 +0200 Subject: [PATCH] raft.h: Update comment of struct raft_fsm --- include/raft.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/include/raft.h b/include/raft.h index d63710d11..3d7960d87 100644 --- a/include/raft.h +++ b/include/raft.h @@ -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 @@ -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);