mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix some typos (#466)
Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
This commit is contained in:
parent
b4a2103a12
commit
c8c03ff85b
|
@ -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
2
wal.go
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue