aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_vacuum.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-04-18 19:36:14 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-04-18 19:36:14 +0500
commit36c5a59ed8073099c8a5513667c5676f148657f7 (patch)
tree5de61723152af406ad38a301684607c2dd7bde44 /weed/shell/command_volume_vacuum.go
parent1e35b4929f84830bf5fa132f1e715afa02cf62e0 (diff)
downloadseaweedfs-36c5a59ed8073099c8a5513667c5676f148657f7.tar.xz
seaweedfs-36c5a59ed8073099c8a5513667c5676f148657f7.zip
add help
Diffstat (limited to 'weed/shell/command_volume_vacuum.go')
-rw-r--r--weed/shell/command_volume_vacuum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_vacuum.go b/weed/shell/command_volume_vacuum.go
index 637411945..fc454c9ff 100644
--- a/weed/shell/command_volume_vacuum.go
+++ b/weed/shell/command_volume_vacuum.go
@@ -22,7 +22,7 @@ func (c *commandVacuum) Name() string {
func (c *commandVacuum) Help() string {
return `compact volumes if deleted entries are more than the limit
- volume.vacuum [-garbageThreshold=0.3]
+ volume.vacuum [-garbageThreshold=0.3] [-collection=<collection name>] [-volumeId=<volume id>]
`
}
@@ -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")
collection := volumeVacuumCommand.String("collection", "", "vacuum this collection")
- volumeId := volumeVacuumCommand.Int("volumeId", 0, "the volume id")
+ volumeId := volumeVacuumCommand.Uint("volumeId", 0, "the volume id")
if err = volumeVacuumCommand.Parse(args); err != nil {
return
}