Merge pull request #13110 from machine424/del-extra

head.go: Remove an unneeded snapshot trigger that was moved in https:…
This commit is contained in:
Julien Pivotto 2023-11-09 10:26:36 -06:00 committed by GitHub
commit cfd83e71f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())
}