aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorqinguoyi <1532979219@qq.com>2024-08-02 15:04:57 +0800
committerGitHub <noreply@github.com>2024-08-02 00:04:57 -0700
commitb74b506e52160e512ae59db8cd79ec56cd981ed9 (patch)
treec07c960aae2852198776880d142b846b3c746714 /weed
parent8378a5b70b93f728ad331677a697e4d2b345927e (diff)
downloadseaweedfs-b74b506e52160e512ae59db8cd79ec56cd981ed9.tar.xz
seaweedfs-b74b506e52160e512ae59db8cd79ec56cd981ed9.zip
add command backup destory volume error log (#5846)
Diffstat (limited to 'weed')
-rw-r--r--weed/command/backup.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 3573dbbfd..f9b9fba64 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -138,7 +138,9 @@ func runBackup(cmd *Command, args []string) bool {
if datSize > stats.TailOffset {
// remove the old data
- v.Destroy(false)
+ if err := v.Destroy(false); err != nil {
+ fmt.Printf("Error destroying volume: %v\n", err)
+ }
// recreate an empty volume
v, err = storage.NewVolume(util.ResolvePath(*s.dir), util.ResolvePath(*s.dir), *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, 0, 0)
if err != nil {