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

txn: fix min_commit_ts calculation in prewrite #8672

Merged
merged 2 commits into from
Sep 16, 2020

Conversation

sticnarf
Copy link
Contributor

What problem does this PR solve?

#8657 introduces a bug that the inequality is reversed... min_commit_ts always returns 0 after that PR.

What is changed and how it works?

This bug exposed that some code is not covered by tests. This PR mainly adds a test covering it besides fixing the bug.

Check List

Tests

  • Unit test

Release note

Part of async commit.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@sticnarf sticnarf added sig/transaction SIG: Transaction type/bugfix Type: PR - Fix a bug labels Sep 15, 2020
Copy link
Contributor

@youjiali1995 youjiali1995 left a comment

Choose a reason for hiding this comment

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

lgtm

@ti-srebot ti-srebot added the status/LGT1 Status: PR - There is already 1 approval label Sep 15, 2020
@ti-srebot ti-srebot removed the status/LGT1 Status: PR - There is already 1 approval label Sep 16, 2020
@ti-srebot ti-srebot added the status/LGT2 Status: PR - There are already 2 approvals label Sep 16, 2020
@youjiali1995
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Status: Can merge to base branch label Sep 16, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 8b1b2e6 into tikv:master Sep 16, 2020
@sticnarf sticnarf added this to In progress in Async Commit via automation Dec 29, 2020
@sticnarf sticnarf moved this from In progress to Done in Async Commit Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/transaction SIG: Transaction status/can-merge Status: Can merge to base branch status/LGT2 Status: PR - There are already 2 approvals type/bugfix Type: PR - Fix a bug
Projects
Async Commit
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants