Browse Source

add command backup destory volume error log (#5846)

pull/5847/head
qinguoyi 5 months ago
committed by GitHub
parent
commit
b74b506e52
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/command/backup.go

4
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 {

Loading…
Cancel
Save