From efcc42a79ef136404d57a7b1103031e8c2ee88cb Mon Sep 17 00:00:00 2001 From: Elias Van Ootegem Date: Mon, 8 Apr 2024 18:53:07 +0100 Subject: [PATCH] fix: remove persist check Signed-off-by: Elias Van Ootegem --- core/snapshot/engine.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/snapshot/engine.go b/core/snapshot/engine.go index 5589c0be3a8..b9830595d24 100644 --- a/core/snapshot/engine.go +++ b/core/snapshot/engine.go @@ -752,10 +752,6 @@ func (e *Engine) snapshotNow(ctx context.Context, saveAsync bool) ([]byte, DoneC e.log.Panic("Panic occurred", zap.Any("reason", r)) } }() - // we do not need to save the version, just dump the file - if !persist { - return - } if err := e.snapshotTree.SaveVersion(); err != nil { // If this fails, we are screwed. The tree version is used to construct