aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-10 02:50:28 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-10 02:50:28 -0700
commit69a6da79696c1efe1e77f03c41f9c56c2bb90492 (patch)
tree8b460ebd5b7c88d7b61a9b46dc2adc1b2bc6a29c /weed/shell/command_volume_balance.go
parent18228f3044241041d6d54010f3982238dd922317 (diff)
downloadseaweedfs-69a6da79696c1efe1e77f03c41f9c56c2bb90492.tar.xz
seaweedfs-69a6da79696c1efe1e77f03c41f9c56c2bb90492.zip
avoid fail on tail error
Diffstat (limited to 'weed/shell/command_volume_balance.go')
-rw-r--r--weed/shell/command_volume_balance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 6da128c68..162b66556 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -340,7 +340,7 @@ func moveVolume(commandEnv *CommandEnv, v *master_pb.VolumeInformationMessage, f
}
fmt.Fprintf(os.Stdout, " moving %s volume %s%d %s => %s\n", v.DiskType, collectionPrefix, v.Id, fullNode.info.Id, emptyNode.info.Id)
if applyChange {
- return LiveMoveVolume(commandEnv.option.GrpcDialOption, needle.VolumeId(v.Id), fullNode.info.Id, emptyNode.info.Id, 5*time.Second, v.DiskType)
+ return LiveMoveVolume(commandEnv.option.GrpcDialOption, os.Stderr, needle.VolumeId(v.Id), fullNode.info.Id, emptyNode.info.Id, 5*time.Second, v.DiskType, false)
}
return nil
}