mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 01:03:32 +08:00
add command backup destory volume error log (#5846)
This commit is contained in:
@@ -138,7 +138,9 @@ func runBackup(cmd *Command, args []string) bool {
|
|||||||
|
|
||||||
if datSize > stats.TailOffset {
|
if datSize > stats.TailOffset {
|
||||||
// remove the old data
|
// 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
|
// 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)
|
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 {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user