diff options
| author | guosj <515878133@qq.com> | 2022-02-24 09:04:38 +0800 |
|---|---|---|
| committer | guosj <515878133@qq.com> | 2022-02-24 09:04:38 +0800 |
| commit | 26f3ab8d4b906edab175baab56db43f4eb8c5e9a (patch) | |
| tree | 68d89294f24b6ebf7579e8e8163c23ef91883813 /weed/shell/command_volume_vacuum.go | |
| parent | d68c27f82d589e8b46136fa005bf3cd9c5f4e969 (diff) | |
| download | seaweedfs-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.go | 2 |
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 { |
