aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-03-19 18:48:40 -0700
committerchrislu <chris.lu@gmail.com>2023-03-19 18:48:40 -0700
commit50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1 (patch)
tree922ade4cf9c1865151d888a3415a809e1dccc351 /weed/shell/command_volume_server_evacuate.go
parent29d1312625f67866ae030cdb74ee279ab4770f9c (diff)
downloadseaweedfs-50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1.tar.xz
seaweedfs-50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1.zip
cleaning variables
Diffstat (limited to 'weed/shell/command_volume_server_evacuate.go')
-rw-r--r--weed/shell/command_volume_server_evacuate.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.go
index 94c457689..bf0c192ec 100644
--- a/weed/shell/command_volume_server_evacuate.go
+++ b/weed/shell/command_volume_server_evacuate.go
@@ -88,6 +88,9 @@ func (c *commandVolumeServerEvacuate) volumeServerEvacuate(commandEnv *CommandEn
if err != nil {
return err
}
+ defer func() {
+ c.topologyInfo = nil
+ }()
if err := c.evacuateNormalVolumes(commandEnv, volumeServer, skipNonMoveable, applyChange, writer); err != nil {
return err