fix bug with metadata for rw2 (#14766)

Signed-off-by: Callum Styan <callumstyan@gmail.com>
pull/14767/head
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
1 changed files with 1 additions and 1 deletions

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