aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_vacuum.go
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-02-24 09:04:38 +0800
committerguosj <515878133@qq.com>2022-02-24 09:04:38 +0800
commit26f3ab8d4b906edab175baab56db43f4eb8c5e9a (patch)
tree68d89294f24b6ebf7579e8e8163c23ef91883813 /weed/shell/command_volume_vacuum.go
parentd68c27f82d589e8b46136fa005bf3cd9c5f4e969 (diff)
downloadseaweedfs-26f3ab8d4b906edab175baab56db43f4eb8c5e9a.tar.xz
seaweedfs-26f3ab8d4b906edab175baab56db43f4eb8c5e9a.zip
fix a return bug in func (c *commandVacuum) Do
Diffstat (limited to 'weed/shell/command_volume_vacuum.go')
-rw-r--r--weed/shell/command_volume_vacuum.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_vacuum.go b/weed/shell/command_volume_vacuum.go
index a09bf5d56..61b1f06fa 100644
--- a/weed/shell/command_volume_vacuum.go
+++ b/weed/shell/command_volume_vacuum.go
@@ -32,7 +32,7 @@ func (c *commandVacuum) Do(args []string, commandEnv *CommandEnv, writer io.Writ
volumeVacuumCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
garbageThreshold := volumeVacuumCommand.Float64("garbageThreshold", 0.3, "vacuum when garbage is more than this limit")
if err = volumeVacuumCommand.Parse(args); err != nil {
- return nil
+ return
}
if err = commandEnv.confirmIsLocked(args); err != nil {