File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -818,12 +818,8 @@ func (s *EtcdServer) run() {
818
818
snapi : sn .Metadata .Index ,
819
819
appliedt : sn .Metadata .Term ,
820
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.
821
+ // Compaction is inclusive, meaning compact index should be lower by one than the first index after compaction.
822
+ // This is validated by TestMemoryStorageCompaction.
827
823
compacti : firstRaftIndex - 1 ,
828
824
}
829
825
You can’t perform that action at this time.
0 commit comments