We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 140e81e commit 99db0bbCopy full SHA for 99db0bb
server/etcdserver/server.go
@@ -818,12 +818,8 @@ func (s *EtcdServer) run() {
818
snapi: sn.Metadata.Index,
819
appliedt: sn.Metadata.Term,
820
appliedi: sn.Metadata.Index,
821
- // compacti is the index from the last time raftStorage.Compact was called
822
- // without errors.
823
- //
824
- // After calling raftStorage.Compact(compacti) without errors, the dummy entry of
825
- // raftStorage becomes {Index: compacti}, and raftStorage.FirstIndex() returns
826
- // (compacti+1, nil). This is validated by TestMemoryStorageCompaction.
+ // Compaction is inclusive, meaning compact index should be lower by one than the first index after compaction.
+ // This is validated by TestMemoryStorageCompaction.
827
compacti: firstRaftIndex - 1,
828
}
829
0 commit comments