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

Add unique key info in slave proto #858

Merged
merged 4 commits into from
Dec 28, 2019
Merged

Conversation

july2993
Copy link
Contributor

What problem does this PR solve?

Add unique key info in slave proto

What is changed and how it works?

Add unique key info in slave proto
need pingcap/tidb-tools#310 merged first

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)
create aa(id int);
create table a3(id varchar(255) primary key, c2 int, c3 int, unique key idx1(c3,c2));
create table a3(id int primary key, c2 int, c3 int, unique key idx1(c3,c2));

//and insert data and check the proto works as exptected

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

zier-one
zier-one previously approved these changes Dec 27, 2019
Copy link
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

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

LGTM

@sre-bot
Copy link

sre-bot commented Dec 27, 2019

/run-all-tests

@sre-bot
Copy link

sre-bot commented Dec 27, 2019

@july2993 merge failed.

The offset in IndexInfo is the index of TableInfo.Columns
@july2993
Copy link
Contributor Author

/run-all-tests

@july2993 july2993 merged commit 254a465 into pingcap:master Dec 28, 2019
@july2993 july2993 deleted the add_uk branch December 28, 2019 03:28
@sre-bot
Copy link

sre-bot commented Dec 28, 2019

cherry pick to release-3.0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants