Browse Source

close volume

pull/7465/head
chrislu 3 weeks ago
parent
commit
5a90eb57af
  1. 1
      weed/command/backup.go

1
weed/command/backup.go

@ -178,6 +178,7 @@ func runBackup(cmd *Command, args []string) bool {
lastErr = err lastErr = err
continue continue
} }
v.Close() // Close the old volume handle before creating a new one
// recreate an empty volume // 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) 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 { if err != nil {

Loading…
Cancel
Save