mirror of https://github.com/prometheus/prometheus
Merge pull request #11856 from codesome/mergecleanup
tsdb: Avoid unnecessary allocation from 11779pull/11858/head
commit
e6f84d5445
|
@ -499,7 +499,6 @@ func (h *Head) resetSeriesWithMMappedChunks(mSeries *memSeries, mmc, oooMmc []*m
|
||||||
h.metrics.chunksRemoved.Add(float64(len(mSeries.mmappedChunks)))
|
h.metrics.chunksRemoved.Add(float64(len(mSeries.mmappedChunks)))
|
||||||
h.metrics.chunks.Add(float64(len(mmc) + len(oooMmc) - len(mSeries.mmappedChunks)))
|
h.metrics.chunks.Add(float64(len(mmc) + len(oooMmc) - len(mSeries.mmappedChunks)))
|
||||||
mSeries.mmappedChunks = mmc
|
mSeries.mmappedChunks = mmc
|
||||||
mSeries.ooo = nil
|
|
||||||
if len(oooMmc) == 0 {
|
if len(oooMmc) == 0 {
|
||||||
mSeries.ooo = nil
|
mSeries.ooo = nil
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue