-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gc: separate out lock table scan in the gc queue
Previously, we'd handle resolving intents while scanning through the MVCC keyspace if we came across one. We would resolve it if it was older than some configurable threshold. In all this, we never needed to scan the lock table keyspace directly. We're introducing replicated shared and exclusive locks. The GC queue is expected to resolve extant replicated locks, and as such, needs to concern itself with an explicit lock table scan. This patch removes intent handling from the scan of the MVCC keyspace. For now, no behavior changes -- we only look for and resolve intents. In a future patch we'll extend this behavior to include shared and exclusive replicated locks. While here, we also modify an existing test (`TestIntentAgeThresholdSetting`) to include an intent on a range local key. I've ensured that the test fails if we were to only scan the lock table corresponding to the global keyspace of a range. Informs #111215 Release note: None
- Loading branch information
1 parent
eb42ad1
commit 6b9599d
Showing
3 changed files
with
115 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
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