raft: fix a description of MemoryStorage.Compact

The parameter name is compactIndex, not i.
release-2.3
Kenji Kaneda 2015-10-06 21:44:34 -07:00
parent 21179d929f
commit ebd8cb04c1
1 changed files with 1 additions and 1 deletions

View File

@ -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 {