mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Only remove the items on the seriesForMMap that was already mmaped
Signed-off-by: alanprot <alanprot@gmail.com>
This commit is contained in:
parent
e20567f054
commit
c2a5bf2505
|
@ -1765,7 +1765,7 @@ func (h *Head) mmapHeadChunks() {
|
|||
}
|
||||
h.metrics.mmapChunksTotal.Add(float64(count))
|
||||
h.seriesForMMapLock.Lock()
|
||||
h.seriesForMMap = append(h.seriesForMMap[:0], h.seriesForMMap[len(h.seriesForMMap):]...)
|
||||
h.seriesForMMap = append(h.seriesForMMap[:0], h.seriesForMMap[len(series):]...)
|
||||
h.seriesForMMapLock.Unlock()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue