Skip to content

Commit

Permalink
fix bug with metadata for rw2 (prometheus#14766)
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Styan <[email protected]>
  • Loading branch information
cstyan authored Aug 30, 2024
1 parent ee2b7fd commit a77f500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/wlog/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (w *Watcher) readSegment(r *LiveReader, segmentNum int, tail bool) error {
}

case record.Metadata:
if !w.sendMetadata || !tail {
if !w.sendMetadata {
break
}
meta, err := dec.Metadata(rec, metadata[:0])
Expand Down

0 comments on commit a77f500

Please sign in to comment.