aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-18 01:46:31 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-18 01:46:31 +0500
commit3c2774ec3de28fc3c5fdff4168cffbe31feabdb9 (patch)
tree2dd7fa9db02bb169602a4755a799576701a72af4 /weed/shell/command_volume_server_evacuate.go
parent4d5144e50d39fb33aea688f9c1bc5f0f3711c8c0 (diff)
downloadseaweedfs-3c2774ec3de28fc3c5fdff4168cffbe31feabdb9.tar.xz
seaweedfs-3c2774ec3de28fc3c5fdff4168cffbe31feabdb9.zip
fix update topologyInfo
Diffstat (limited to 'weed/shell/command_volume_server_evacuate.go')
-rw-r--r--weed/shell/command_volume_server_evacuate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.go
index 3b0c8381b..0595ef308 100644
--- a/weed/shell/command_volume_server_evacuate.go
+++ b/weed/shell/command_volume_server_evacuate.go
@@ -103,9 +103,9 @@ func (c *commandVolumeServerEvacuate) volumeServerEvacuate(commandEnv *CommandEn
select {
default:
if topologyInfo, _, err := collectTopologyInfo(commandEnv, topologyInfoUpdateInterval); err != nil {
- c.topologyInfo = topologyInfo
- } else {
fmt.Fprintf(writer, "update topologyInfo %v", err)
+ } else {
+ c.topologyInfo = topologyInfo
}
case <-stopchan:
return