mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Update comment
Signed-off-by: Patryk Prus <p@trykpr.us>
This commit is contained in:
parent
f2f1357917
commit
4d469e062b
|
@ -76,7 +76,7 @@ func (h *Head) loadWAL(r *wlog.Reader, syms *labels.SymbolTable, multiRef map[ch
|
||||||
|
|
||||||
_, last, err := wlog.Segments(h.wal.Dir())
|
_, last, err := wlog.Segments(h.wal.Dir())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to get last segment to mark duplicate series as deleted: %w", err)
|
return fmt.Errorf("failed to get last segment to set WAL expiry for duplicate series: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
@ -242,7 +242,7 @@ Outer:
|
||||||
}
|
}
|
||||||
if !created {
|
if !created {
|
||||||
multiRef[walSeries.Ref] = mSeries.ref
|
multiRef[walSeries.Ref] = mSeries.ref
|
||||||
// Mark the walSeries as deleted, so it is kept in subsequent WAL checkpoints.
|
// Set the WAL expiry for the duplicate series, so it is kept in subsequent WAL checkpoints.
|
||||||
h.setWALExpiry(walSeries.Ref, last)
|
h.setWALExpiry(walSeries.Ref, last)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue