mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
fix(chunkenc): bug in initializing appender on existing chunk
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
07c543f02d
commit
b2491c7cf7
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue