forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: use correct strength for {Get,Scan,ReverseScan} for SKIP LOCKED
Previously, when calling into the in-memory lock table to determine whether a key needs to be skipped because of the SKIP LOCKED wait policy, we would infer the request's strength using the `FailOnMoreRecent` option. The introduction of shared locks broke this inference. For this reason, SELECT FOR SHARE SKIP LOCKED was disallowed. This patch polishes and adds testing for 7bea05d, thereby enabling SELECT FOR SHARE SKIP LOCKED. Resolves cockroachdb#110743 Release note (sql change): SELECT FOR SHARE SKIP LOCKED, which was previously disallowed, no works.
- Loading branch information
1 parent
c16a700
commit 69971b1
Showing
10 changed files
with
1,333 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.