-
Notifications
You must be signed in to change notification settings - Fork 5.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
bindinfo: avoid duplicate bindings caused by concurrent baseline capture #22182
Conversation
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
I have a question about |
@Reminiscent |
|
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
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
/run-all-tests |
cherry pick to release-4.0 in PR #22295 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Kenan Yao <cauchy1992@gmail.com>
What problem does this PR solve?
Issue Number: close #22178
Problem Summary:
Duplicate bindings for a same original_sql.
What is changed and how it works?
What's Changed:
Call
CreateBindRecord
instead ofAddBindRecord
inCaptureBaselines
.How it Works:
AddBindRecord
only checks the duplicate in binding cache, whileCreateBindRecord
would remove duplicate bindings inmysql.bind_info
unconditionally.Related changes
Check List
Tests
Side effects
N/A
Release note