From 5a90eb57af79891b9eba5d83fdc3da657e70e0e6 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 11 Nov 2025 01:55:20 -0800 Subject: [PATCH] close volume --- weed/command/backup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/command/backup.go b/weed/command/backup.go index ce1c789a9..2f3296bf4 100644 --- a/weed/command/backup.go +++ b/weed/command/backup.go @@ -178,6 +178,7 @@ func runBackup(cmd *Command, args []string) bool { lastErr = err continue } + v.Close() // Close the old volume handle before creating a new one // recreate an empty volume v, err = storage.NewVolume(util.ResolvePath(*s.dir), util.ResolvePath(*s.dir), *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, ver, 0, 0) if err != nil {