diff --git a/tsdb/head_wal.go b/tsdb/head_wal.go index 21cd285ec..dc2aa705f 100644 --- a/tsdb/head_wal.go +++ b/tsdb/head_wal.go @@ -496,8 +496,8 @@ func (h *Head) resetSeriesWithMMappedChunks(mSeries *memSeries, mmc, oooMmc []*m } h.metrics.chunksCreated.Add(float64(len(mmc) + len(oooMmc))) - h.metrics.chunksRemoved.Add(float64(len(mSeries.mmappedChunks))) /// + len(mSeries.ooo.oooMmappedChunks))) - h.metrics.chunks.Add(float64(len(mmc) + len(oooMmc) - len(mSeries.mmappedChunks))) /// - len(mSeries.ooo.oooMmappedChunks))) + h.metrics.chunksRemoved.Add(float64(len(mSeries.mmappedChunks))) + h.metrics.chunks.Add(float64(len(mmc) + len(oooMmc) - len(mSeries.mmappedChunks))) mSeries.mmappedChunks = mmc mSeries.ooo = nil if len(oooMmc) == 0 {