fix bug with metadata for rw2 (#14766)

Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
Callum Styan 2024-08-30 00:14:20 -07:00 committed by GitHub
parent ee2b7fdf9d
commit a77f5007f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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])