Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Acquire a per-lock lease to make renew and revoke atomic wrt each oth…
…er. (#11122) * Acquire a per-lock lease to make renew and revoke atomic wrt each other. This means we don't have to hold pendingLock during I/O. * Attempted fix for deadlock in token revocation. * Comment fix. * Fix error checking in loadEntry. * Add benchmark * Add a few additional locking locations * Improve benchmark slightly * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Update vault/expiration.go Co-authored-by: swayne275 <swayne275@gmail.com> * Add a lease lock into tidy Co-authored-by: Scott Miller <smiller@hashicorp.com> Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com> Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com> Co-authored-by: swayne275 <swayne275@gmail.com>
- Loading branch information
1 parent
f8353a8
commit 5323b68
Showing
2 changed files
with
161 additions
and
53 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