diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-24 12:51:30 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-24 12:51:30 +0300 |
commit | 8ed5e4cbbf5b8b4cd5bd2843c390799c145e74fe (patch) | |
tree | 80b5d4d32997aa2810bf14f06d6e5b218e5c8c36 | |
parent | 87b27f7ab0a9462c32509dcf7261b1b045e06417 (diff) | |
parent | 2fc6839707f72343a73da30664d90c40c3eff8d3 (diff) |
Merge branch 'eread/edit-verify-subcommand-help-text' into 'master'
Edit verify subcommand help text
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6272
Merged-by: Sami Hiltunen <shiltunen@gitlab.com>
Approved-by: Fiona Neill <fneill@gitlab.com>
Approved-by: Sami Hiltunen <shiltunen@gitlab.com>
Co-authored-by: Evan Read <eread@gitlab.com>
-rw-r--r-- | internal/cli/praefect/subcmd_verify.go | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/internal/cli/praefect/subcmd_verify.go b/internal/cli/praefect/subcmd_verify.go index fd4781e12..4d54e0505 100644 --- a/internal/cli/praefect/subcmd_verify.go +++ b/internal/cli/praefect/subcmd_verify.go @@ -14,27 +14,38 @@ const verifyCmdName = "verify" func newVerifyCommand() *cli.Command { return &cli.Command{ Name: verifyCmdName, - Usage: "mark repositories for verification", - Description: "Mark for verification:\n\n" + + Usage: "mark repository replicas as unverified", + Description: `Mark as unverified replicas of repositories to prioritize reverification. - "- A single repository if the `repository-id` flag is provided.\n" + - "- A batch of repositories that belong to a particular storage or virtual storage if they exist on disk.\n\n" + +The subcommand sets different replicas as unverified depending on the supplied flags: - "Verification runs asynchronously in the background.", +- When a repository ID is specified, all the replicas of the repository on physical storage are marked as unverified. +- When a virtual storage name is specified, all the replicas of all repositories on all physical storages associated with + the virtual storage as marked as unverified. +- When a virtual storage name and physical storage name are specified, all the replicas of all repositories on the + specified physical storage associated with the specified virtual storage are marked as unverified. + +Reverification runs asynchronously in the background. + +Examples: + +- praefect --config praefect.config.toml verify --repository-id 1 +- praefect --config praefect.config.toml verify --virtual-storage default +- praefect --config praefect.config.toml verify --virtual-storage default --storage <physical_storage_1>`, HideHelpCommand: true, Action: verifyAction, Flags: []cli.Flag{ &cli.Int64Flag{ Name: "repository-id", - Usage: "the id of the repository to verify", + Usage: "repository ID of the repository to mark as unverified", }, &cli.StringFlag{ Name: paramVirtualStorage, - Usage: "the virtual storage to verify", + Usage: "name of the virtual storage with replicas to mark as unverified", }, &cli.StringFlag{ Name: "storage", - Usage: "the storage to verify", + Usage: "name of the the physical storage associated with the virtual storage with replicas to mark as unverified", }, }, Before: func(ctx *cli.Context) error { |