From 6e560fe19ba528f10fa1417ea1ae90da0e5ac38a Mon Sep 17 00:00:00 2001 From: Ganesh Vernekar Date: Tue, 17 Jan 2023 16:53:49 +0530 Subject: [PATCH] tsdb: Avoid unnecessary allocation from 11779 Signed-off-by: Ganesh Vernekar --- tsdb/head_wal.go | 1 - 1 file changed, 1 deletion(-) diff --git a/tsdb/head_wal.go b/tsdb/head_wal.go index 9bc6985d3..708541364 100644 --- a/tsdb/head_wal.go +++ b/tsdb/head_wal.go @@ -499,7 +499,6 @@ func (h *Head) resetSeriesWithMMappedChunks(mSeries *memSeries, mmc, oooMmc []*m 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 { mSeries.ooo = nil } else {