diff --git a/tsdb/chunkenc/xoroptst.go b/tsdb/chunkenc/xoroptst.go index 71bb195d0a..b138ddbdf4 100644 --- a/tsdb/chunkenc/xoroptst.go +++ b/tsdb/chunkenc/xoroptst.go @@ -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,