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.
concurrency: datastructure changes to enable multiple lock strengths
Prior to this patch, any unreplicated lock was assumed to be held with lock strength Exclusive. This patch enables us to represent other lock strengths in the lock table, which will allow us to support shared locks in the near future. There's a small functional change in this commit. Previously, we'd track all sequence numbers an unreplicated lock is held at in the lock table. As described in the shared locks RFC, this tracking is superflous -- instead, it's sufficient to only track the lowest sequence number (that hasn't been rolled back) with which a lock is held. We do so now. Closes cockroachdb#102270 Epic: none Release note: None
- Loading branch information
1 parent
8815db3
commit f56e347
Showing
34 changed files
with
619 additions
and
565 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
Oops, something went wrong.