Explorar o código

Merge pull request #3649 from kkaneda/kkaneda/comment_fix

raft: fix a description of MemoryStorage.Compact
Xiang Li %!s(int64=10) %!d(string=hai) anos
pai
achega
dc394a0a99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      raft/storage.go

+ 1 - 1
raft/storage.go

@@ -193,7 +193,7 @@ func (ms *MemoryStorage) CreateSnapshot(i uint64, cs *pb.ConfState, data []byte)
 	return ms.snapshot, nil
 }
 
-// Compact discards all log entries prior to i.
+// Compact discards all log entries prior to compactIndex.
 // It is the application's responsibility to not attempt to compact an index
 // greater than raftLog.applied.
 func (ms *MemoryStorage) Compact(compactIndex uint64) error {