Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

txn: support force locking and lock only if exists be used together #727

Merged

Conversation

MyonKeminta
Copy link
Contributor

@MyonKeminta MyonKeminta commented Mar 6, 2023

Ref: tikv/tikv#14293
This PR makes client-go allow force-locking be used when lockOnlyIfExists is set. Also adjusted mocktikv's behavior in this case, according to tikv/tikv#14293 .

Requires merging tikv/tikv#14330 first.

@MyonKeminta
Copy link
Contributor Author

The failing test TestRequestPriority doesn't seem to be caused by this PR.

@MyonKeminta MyonKeminta requested review from ekexium and cfzjywxk and removed request for ekexium March 8, 2023 08:10
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Copy link
Contributor

@cfzjywxk cfzjywxk left a comment

Choose a reason for hiding this comment

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

LGTM

@MyonKeminta MyonKeminta merged commit f555fdd into tikv:master Mar 9, 2023
@MyonKeminta MyonKeminta deleted the m/aggressive-locking-lock-only-if-exists branch March 9, 2023 10:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants