Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcdutl: update description for --mark-compacted and and --bump-revision flags in snapshot restore command #16166

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Jul 3, 2023

It's really weird to have circular description between --bump-revision and --mark-compacted,

  • description required if --mark-compacted for flag --bump-revision
  • description required if --bump-revision > 0 for flag --mark-compacted

Actually --mark-compacted is determined entirely by --bump-revision,

  • It (--mark-compacted) isn't allowed if users do not bump revision
  • It (--mark-compacted) must be specified if users bump the revision

So we only need to add the description(restrictions) to flag --mark-compacted. See also #16029 (comment)

…flags in snapshot restore command

Signed-off-by: Benjamin Wang <wachao@vmware.com>
Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahrtr ahrtr merged commit e626c4d into etcd-io:main Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants