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

Fix a typo in optimistic-transaction.md #4959

Merged
merged 2 commits into from
Mar 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optimistic-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To support distributed transactions, TiDB adopts two-phase commit (2PC) in optim
1. TiDB selects a Primary Key from the data to be written.
2. TiDB receives the information of Region distribution from PD, and groups all keys by Region accordingly.
3. TiDB sends prewrite requests to all TiKV nodes involved. Then, TiKV checks whether there are conflict or expired versions. Valid data is locked.
4. TiDB receives all requests in the prewrite phase and the prewrite is successful.
4. TiDB receives all responses in the prewrite phase and the prewrite is successful.
5. TiDB receives a commit version number from PD and marks it as `commit_ts`.
6. TiDB initiates the second commit to the TiKV node where Primary Key is located. TiKV checks the data, and cleans the locks left in the prewrite phase.
7. TiDB receives the message that reports the second phase is successfully finished.
Expand Down