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.
storage/concurrency: change waitElsewhere to only be used when
the lock is held in replicated mode. Also, when under memory pressure, narrow the exception to clearing the lock to only replicated locks with no distinguished waiter. The motivation for this change is that when the lockTable is clearing its internal state, the only sequencing information remaining is for locks held in replicated mode. All others, locks held in unreplicated mode, or not held locks with reservations, should permit waiters to race. This race will only recreate the queue for a lock after the lock is acquired, since before then it will appear uncontended. Release note: None
- Loading branch information
1 parent
062a3a8
commit ce7ed75
Showing
1 changed file
with
34 additions
and
21 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