diff options
| author | chrislu <chris.lu@gmail.com> | 2023-03-19 18:48:40 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-03-19 18:48:40 -0700 |
| commit | 50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1 (patch) | |
| tree | 922ade4cf9c1865151d888a3415a809e1dccc351 /weed/shell/command_fs_verify.go | |
| parent | 29d1312625f67866ae030cdb74ee279ab4770f9c (diff) | |
| download | seaweedfs-50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1.tar.xz seaweedfs-50dc2fe96b2dbdd636b7a51d659fa79f9aef46c1.zip | |
cleaning variables
Diffstat (limited to 'weed/shell/command_fs_verify.go')
| -rw-r--r-- | weed/shell/command_fs_verify.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go index e2204c191..e59c43fd2 100644 --- a/weed/shell/command_fs_verify.go +++ b/weed/shell/command_fs_verify.go @@ -69,6 +69,12 @@ func (c *commandFsVerify) Do(args []string, commandEnv *CommandEnv, writer io.Wr c.volumeIds = make(map[uint32][]pb.ServerAddress) c.waitChan = make(map[string]chan struct{}) c.volumeServers = []pb.ServerAddress{} + defer func() { + c.modifyTimeAgoAtSec = 0 + c.volumeIds = nil + c.waitChan = nil + c.volumeServers = nil + }() if err := c.collectVolumeIds(); err != nil { return parseErr |
