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

doamin: fix GetSnapshotInfoSchema using current TS #10309

Merged
merged 2 commits into from
Apr 30, 2019

Conversation

zimulala
Copy link
Contributor

What problem does this PR solve?

If the snapshotTS's schema version and do.infoHandle.Get().SchemaMetaVersion() is equal in GetSnapshotInfoSchema, we will get the empty infoschema.

What is changed and how it works?

I set usedSchemaVersion to initialVersion, then the full load is needed.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

@zimulala zimulala added the type/bugfix This PR fixes a bug. label Apr 29, 2019
@zimulala
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #10309 into master will decrease coverage by <.0001%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #10309        +/-   ##
================================================
- Coverage   77.6692%   77.6691%   -0.0001%     
================================================
  Files           411        411                
  Lines         85447      85429        -18     
================================================
- Hits          66366      66352        -14     
  Misses        14118      14118                
+ Partials       4963       4959         -4

@zimulala
Copy link
Contributor Author

PTAL @tiancaiamao @jackysp

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 30, 2019
@zimulala
Copy link
Contributor Author

PTAL @XuHuaiyu

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Apr 30, 2019
@tiancaiamao tiancaiamao merged commit e90804f into pingcap:master Apr 30, 2019
@zimulala zimulala deleted the get-snapshot branch April 30, 2019 08:41
zimulala added a commit to zimulala/tidb that referenced this pull request Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants