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

executor: fix point get snapshot TS for pessimistic transaction. #11012

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

coocood
Copy link
Member

@coocood coocood commented Jul 1, 2019

What problem does this PR solve?

Select for update use PointGet executor, the TS for the snapshot always use startTS, result in wrong result.

What is changed and how it works?

Set the snapshot TS to forUpdateTS if the point get locks the key.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

@coocood
Copy link
Member Author

coocood commented Jul 1, 2019

/run-all-tests

@codecov
Copy link

codecov bot commented Jul 1, 2019

Codecov Report

Merging #11012 into master will decrease coverage by 0.0651%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##             master    #11012        +/-   ##
===============================================
- Coverage   81.0171%   80.952%   -0.0652%     
===============================================
  Files           418       418                
  Lines         89428     89264       -164     
===============================================
- Hits          72452     72261       -191     
- Misses        11739     11764        +25     
- Partials       5237      5239         +2

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
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/LGT2 Indicates that a PR has LGTM 2. label Jul 1, 2019
@coocood coocood added status/LGT1 Indicates that a PR has LGTM 1. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Jul 1, 2019
@jackysp jackysp added the sig/execution SIG execution label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants