fix(chunkenc): bug in initializing appender on existing chunk

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2026-02-06 15:34:56 +01:00
parent 07c543f02d
commit b2491c7cf7
No known key found for this signature in database
GPG key ID: 47A8F9CE80FD7C7F

View file

@ -114,6 +114,10 @@ func (c *XorOptSTChunk) Appender() (Appender, error) {
return nil, err
}
// Set the bit position for continuing writes.
// The iterator's reader tracks how many bits remain unread in the last byte.
c.b.count = it.br.valid
a := &xorOptSTAppender{
b: &c.b,
st: it.st,