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

bindinfo: support drop specific binding #13245

Merged
merged 5 commits into from
Nov 13, 2019

Conversation

alivxxx
Copy link
Contributor

@alivxxx alivxxx commented Nov 7, 2019

What problem does this PR solve?

In previous PRs, we support multiply bindings for a single sql. Thus it is necessary to support drop a specific binding.

What is changed and how it works?

  • Support a new syntax for it.
  • Find the corresponding binding that in using status with their hint, and remove it from cache and store.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • None

Related changes

  • None

Release note

  • None

Copy link
Contributor

@eurekaka eurekaka left a comment

Choose a reason for hiding this comment

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

LGTM

@eurekaka eurekaka added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 12, 2019
winoros
winoros previously approved these changes Nov 12, 2019
Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

lgtm

@winoros winoros added status/can-merge Indicates a PR has been approved by a committer. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 12, 2019
@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. and removed status/ReqChange labels Nov 13, 2019
@alivxxx alivxxx requested a review from winoros November 13, 2019 02:41
@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

Merging #13245 into master will decrease coverage by 0.1728%.
The diff coverage is 84.6153%.

@@               Coverage Diff                @@
##             master     #13245        +/-   ##
================================================
- Coverage   80.3624%   80.1895%   -0.1729%     
================================================
  Files           471        471                
  Lines        114719     113400      -1319     
================================================
- Hits          92191      90935      -1256     
+ Misses        15459      15396        -63     
  Partials       7069       7069

@alivxxx
Copy link
Contributor Author

alivxxx commented Nov 13, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 13, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 13, 2019

@lamxTyler merge failed.

@alivxxx
Copy link
Contributor Author

alivxxx commented Nov 13, 2019

/run-integration-copr-test

@alivxxx alivxxx merged commit 343bb64 into pingcap:master Nov 13, 2019
@alivxxx alivxxx deleted the drop-single-binding branch November 13, 2019 04:32
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/new-feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants