Skip to content

Add Op::SharedLock and Op::SharedPessimisticLock for acquiring shared lock in pessimistic transacitons. (#1374)#1417

Merged
ti-chi-bot[bot] merged 1 commit intopingcap:release-8.5from
you06:8.5/shared-lock
Feb 24, 2026
Merged

Add Op::SharedLock and Op::SharedPessimisticLock for acquiring shared lock in pessimistic transacitons. (#1374)#1417
ti-chi-bot[bot] merged 1 commit intopingcap:release-8.5from
you06:8.5/shared-lock

Conversation

@you06
Copy link
Contributor

@you06 you06 commented Feb 13, 2026

Cherry pick #1374 to release-8.5 branch.


ref #1369, ref #1377, ref #1378, tikv/tikv#19087

#1369 added an enum type SharedLock for Op in a specific branch, this PR reverse this field in master branch to keep compatibility.
#1377 devided the Op for shared lock into 2 phases (pessimistic lock phase and prewrite phase).

…ared lock in pessimistic transacitons. (pingcap#1374)

* reserve Op for shared lock

Signed-off-by: you06 <you1474600@gmail.com>

* distinguish between shared prewrite locks and shared pessimistic locks (pingcap#1377)

* let LockInfo carry the full txn info when it's shared

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* move the todo comment to the proper place

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* distinguish between shared prewrite locks and shared pessimistic locks

Signed-off-by: zyguan <zhongyangguan@gmail.com>

---------

Signed-off-by: zyguan <zhongyangguan@gmail.com>

* update kvproto

Signed-off-by: you06 <you1474600@gmail.com>

* add embed shared_lock_infos

Signed-off-by: you06 <you1474600@gmail.com>

---------

Signed-off-by: you06 <you1474600@gmail.com>
Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: zyguan <zhongyangguan@gmail.com>
@ti-chi-bot ti-chi-bot bot added the size/XXL label Feb 13, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 24, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfzjywxk, zyguan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 24, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-02-24 05:41:24.498631361 +0000 UTC m=+160757.013425970: ☑️ agreed by zyguan.
  • 2026-02-24 06:09:19.705323815 +0000 UTC m=+162432.220118424: ☑️ agreed by cfzjywxk.

@ti-chi-bot ti-chi-bot bot merged commit 3586c08 into pingcap:release-8.5 Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants