Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
pull/14438/head
Carrie Edwards 12 months ago
parent e0d7cef545
commit 7e020bb4e9
  1. 2
      tsdb/head_append.go
  2. 4
      tsdb/ooo_head_read.go

@ -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()

@ -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)
}
}
}

Loading…
Cancel
Save