From a2f595b207d84103590c32cb3bde28b023207b0e Mon Sep 17 00:00:00 2001 From: Denis Kieft Date: Thu, 29 Oct 2026 19:00:15 -0700 Subject: [PATCH] backup: don't Close a volume after Destroy (#12225) Co-authored-by: user.email --- weed/command/backup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/command/backup.go b/weed/command/backup.go index ea6e083fe6..62db28f5f9 100644 --- a/weed/command/backup.go +++ b/weed/command/backup.go @@ -163,7 +163,8 @@ func backupFromLocation(volumeServer pb.ServerAddress, grpcDialOption grpc.DialO v.Close() return fmt.Errorf("destroying volume: %w", err), false } - v.Close() // Close the destroyed volume + // Destroy already closed v. Closing it again hangs, because Destroy + // leaves the compaction flag set. // recreate an empty volume v, err = storage.NewVolume(*s.dir, *s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, ver, 0, 0) if err != nil {