From a32fbc3658016a92834417695e80f511ed576ce1 Mon Sep 17 00:00:00 2001 From: machine424 Date: Wed, 8 Nov 2023 14:19:12 +0100 Subject: [PATCH] head.go: Remove an unneeded snapshot trigger that was moved in https://github.com/prometheus/prometheus/pull/9328 and brougt back by mistake in 095f572d4a855fa5c3492fd98c0459abbff91a07 as part of https://github.com/prometheus/prometheus/pull/11447 Signed-off-by: machine424 --- tsdb/head.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsdb/head.go b/tsdb/head.go index ee0ffcb8d..d096bc631 100644 --- a/tsdb/head.go +++ b/tsdb/head.go @@ -1593,9 +1593,6 @@ func (h *Head) Close() error { h.mmapHeadChunks() errs := tsdb_errors.NewMulti(h.chunkDiskMapper.Close()) - if errs.Err() == nil && h.opts.EnableMemorySnapshotOnShutdown { - errs.Add(h.performChunkSnapshot()) - } if h.wal != nil { errs.Add(h.wal.Close()) }