mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Fix a typo in head.go (#553)
Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
This commit is contained in:
parent
8feb67e630
commit
95648b33c4
4
head.go
4
head.go
|
@ -891,8 +891,8 @@ func (h *Head) Delete(mint, maxt int64, ms ...labels.Matcher) error {
|
||||||
var enc RecordEncoder
|
var enc RecordEncoder
|
||||||
if h.wal != nil {
|
if h.wal != nil {
|
||||||
// Although we don't store the stones in the head
|
// Although we don't store the stones in the head
|
||||||
// we need to write them to the WAL to mark these as deleted
|
// we need to write them to the WAL to mark these as deleted
|
||||||
// after a restart while loeading the WAL.
|
// after a restart while loading the WAL.
|
||||||
if err := h.wal.Log(enc.Tombstones(stones, nil)); err != nil {
|
if err := h.wal.Log(enc.Tombstones(stones, nil)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue