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

errorpb: rename StaleEpoch to EpochNotMatch #344

Merged
merged 4 commits into from
Jan 31, 2019

Conversation

overvenus
Copy link
Member

Renames StaleEpoch to EpochNotMatch and adds a flag to tell if epoch is stale.

Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus overvenus added the DNM Do Not Merge label Jan 24, 2019
BusyJay
BusyJay previously approved these changes Jan 24, 2019
repeated metapb.Region new_regions = 1;
message EpochNotMatch {
repeated metapb.Region current_regions = 1;
bool is_stale = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the default value is false, and this may cause some compatible issues?

@siddontang
Copy link
Member

is it backward compatibility?

@overvenus
Copy link
Member Author

Yes, it is.

Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus overvenus removed the DNM Do Not Merge label Jan 28, 2019
Copy link
Member

@siddontang siddontang left a comment

Choose a reason for hiding this comment

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

LGTM

@overvenus overvenus merged commit 7e329e0 into pingcap:master Jan 31, 2019
@overvenus overvenus deleted the epoch-not-match branch January 31, 2019 05:25
overvenus added a commit that referenced this pull request Feb 26, 2019
Signed-off-by: Neil Shen <overvenus@gmail.com>
sticnarf pushed a commit to sticnarf/kvproto that referenced this pull request Oct 27, 2019
Signed-off-by: Neil Shen <overvenus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants