-
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.
kv/concurrency: bind on-lock-{acquired,updated} commands to requests
This commit updates the TestConcurrencyManagerBasic framework to bind all `on-lock-acquired` and `on-lock-updated` commands to specific requests. This prevents misuse of these hooks. For instance, it ensures that latches are properly held before allowing the hooks to be executed (by nature of the guard being in guardsByReqName) and it ensures that the keys provided to the hooks agree with those in the request definition. Release justification: testing only
- Loading branch information
1 parent
773c9b5
commit 69b878a
Showing
5 changed files
with
259 additions
and
127 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
Oops, something went wrong.