From 4b200ad80836f74dd02efaf8767d105d91a66fe9 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Fri, 8 Jul 2022 17:59:19 +0300 Subject: [PATCH] chore: revise Peer::commit_index doc comment --- src/traft/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/traft/mod.rs b/src/traft/mod.rs index 5a626cd263..3b4ffb4f7d 100644 --- a/src/traft/mod.rs +++ b/src/traft/mod.rs @@ -178,7 +178,8 @@ pub struct Peer { pub replicaset_id: String, pub replicaset_uuid: String, - /// Index in the raft log. `0` means it's not committed yet. + /// Index of the most recent raft log entry that persisted this peer. + /// `0` means it's not committed yet. pub commit_index: u64, /// The state of this instance's activity. -- GitLab