fix some typos (#466)

Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
This commit is contained in:
JoeWrightss 2018-12-07 17:24:02 +08:00 committed by Krasi Georgiev
parent b4a2103a12
commit c8c03ff85b
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ func repairBadIndexVersion(logger log.Logger, dir string) error {
if _, err := io.Copy(repl, broken); err != nil { if _, err := io.Copy(repl, broken); err != nil {
return wrapErr(err, d) return wrapErr(err, d)
} }
// Set the 5th byte to 2 to indiciate the correct file format version. // Set the 5th byte to 2 to indicate the correct file format version.
if _, err := repl.WriteAt([]byte{2}, 4); err != nil { if _, err := repl.WriteAt([]byte{2}, 4); err != nil {
return wrapErr(err, d) return wrapErr(err, d)
} }

2
wal.go
View file

@ -322,7 +322,7 @@ func (w *SegmentWAL) putBuffer(b *encbuf) {
} }
// Truncate deletes the values prior to mint and the series which the keep function // Truncate deletes the values prior to mint and the series which the keep function
// does not indiciate to preserve. // does not indicate to preserve.
func (w *SegmentWAL) Truncate(mint int64, keep func(uint64) bool) error { func (w *SegmentWAL) Truncate(mint int64, keep func(uint64) bool) error {
// The last segment is always active. // The last segment is always active.
if len(w.files) < 2 { if len(w.files) < 2 {