-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
br-stream: implement restore command #31821
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-check_dev |
/run-integration-br-tests I have found that with this PR, BR may fail with
I'm not sure why... FYI |
fixed in bd114c5... |
/run-integration-br-tests |
1 similar comment
/run-integration-br-tests |
failed to start tiflash is a known issue. |
/run-integration-br-tests |
I guess maybe we should update br-stream with master branch to fix br_tiflash case... |
// Rewrites a raw key and returns a encoded key. | ||
// Rewrites an encoded key and returns a encoded key. | ||
func rewriteEncodedKey(key []byte, rewriteRules *RewriteRules) ([]byte, *import_sstpb.RewriteRule) { | ||
if rewriteRules == nil { |
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.
func rewriteEncodedKey(key []byte, rewriteRules *RewriteRules) ([]byte, *import_sstpb.RewriteRule) {
if rewriteRules == nil || len(key) == 0 {
return key, nil
}
_, rawKey, _ := codec.DecodeBytes(key, nil)
return rewriteRawkey(rawKey, rewriteRules)
}
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
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
/run-check_dev |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: cb93ae1
|
/run-mysql-test |
/run-check_dev |
/run-mysql-test |
3 similar comments
/run-mysql-test |
/run-mysql-test |
/run-mysql-test |
* add restore command * coarse implement restore
* add restore command * coarse implement restore
* add restore command * coarse implement restore
What problem does this PR solve?
Issue Number: close #31975
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note