-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concurrency: rollback ignored sequence numbers on lock acquisition
This patch adds logic to prune the list of sequence numbers tracked by the lock table for unreplicated locks. This is done when some of the tracked sequence numbers are considered ignored, by virtue of a savepoint rollback. Note that we only do so for unreplicated locks, and only if an unreplicated lock is being reacquired. This is because the in-memory lock table is only the source of truth for in-memory locks; the mvcc keyspace is the source of truth for replicated ones. As such, trying to mimic the logic is hard/error-prone -- so we don't attempt to do so. Fixes #102269 Release note: None
- Loading branch information
1 parent
03a7cf9
commit a778ca0
Showing
3 changed files
with
248 additions
and
57 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
Oops, something went wrong.