-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[3.5] Adding optional revision bump and mark compacted to snapshot restore #16165
Conversation
rbytes := newRevBytes() | ||
revToBytes(revision{main: value}, rbytes) | ||
tx.UnsafePut(buckets.Meta, scheduledCompactKeyName, rbytes) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you have a better place, please let me know
Signed-off-by: Allen Ray <alray@redhat.com> Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
cmd.Flags().Uint64Var(&revisionBump, "bump-revision", 0, "How much to increase the latest revision after restore (required if --mark-compacted)") | ||
cmd.Flags().BoolVar(&markCompacted, "mark-compacted", false, "Mark the latest revision after restore as the point of scheduled compaction (required if --bump-revision > 0)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also backport #16166 to 3.5 in this PR or in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll cherry pick it into the PR once the review is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
…flags in snapshot restore command Signed-off-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @tjungblu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for working on this @tjungblu . Are you planning to backport this to 3.4? I am happy to help to do that if that's ok with you. |
Signed-off-by: Wenjia Zhang <wenjiazhang@google.com>
Signed-off-by: Wenjia Zhang <wenjiazhang@google.com>
Signed-off-by: Wenjia Zhang <wenjiazhang@google.com>
3.5 backport of #16029 for #16028