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 16:38:19 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-18 16:38:19 +0500
commitd422e7769c7f52cd250c3bf8ced279cfef8c8ef0 (patch)
tree77a0ebe1cd65290430cf42067932022fc132f94e /weed/shell/command_volume_server_evacuate.go
parent73a0dea16bb72a9f8b8d89cd53ce3f92092af5fb (diff)
downloadseaweedfs-d422e7769c7f52cd250c3bf8ced279cfef8c8ef0.tar.xz
seaweedfs-d422e7769c7f52cd250c3bf8ced279cfef8c8ef0.zip
ticker.Stop
Diffstat (limited to 'weed/shell/command_volume_server_evacuate.go')
-rw-r--r--weed/shell/command_volume_server_evacuate.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.go
index d1c474a76..c9df2c79a 100644
--- a/weed/shell/command_volume_server_evacuate.go
+++ b/weed/shell/command_volume_server_evacuate.go
@@ -118,6 +118,7 @@ func (c *commandVolumeServerEvacuate) evacuateNormalVolumes(commandEnv *CommandE
// move away normal volumes
ticker := time.NewTicker(topologyInfoUpdateInterval)
+ defer ticker.Stop()
for _, thisNode := range thisNodes {
for _, diskInfo := range thisNode.info.DiskInfos {
if applyChange {