Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
This commit is contained in:
Carrie Edwards 2024-07-15 13:15:07 -07:00
parent e0d7cef545
commit 7e020bb4e9
2 changed files with 3 additions and 3 deletions

View File

@ -940,7 +940,7 @@ func (a *headAppender) Commit() (err error) {
// !ok means there are no markers collected for these samples yet. So we first flush the samples
// before setting this m-map marker.
// r != 0 means we have already m-mapped a chunk for this series in the same Commit().
// r != nil means we have already m-mapped a chunk for this series in the same Commit().
// Hence, before we m-map again, we should add the samples and m-map markers
// seen till now to the WBL records.
collectOOORecords()

View File

@ -118,8 +118,8 @@ func (oh *OOOHeadIndexReader) series(ref storage.SeriesRef, builder *labels.Scra
addChunk(c.minTime, c.maxTime, ref, chk.chunk)
}
} else {
var enc chunkenc.Chunk
addChunk(c.minTime, c.maxTime, ref, enc)
var emptyChunk chunkenc.Chunk
addChunk(c.minTime, c.maxTime, ref, emptyChunk)
}
}
}