mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Merge pull request #6077 from hashicorp/b-vault-revlock
vault: fix race in accessor revocations
This commit is contained in:
@@ -311,6 +311,8 @@ func (v *vaultClient) SetActive(active bool) {
|
||||
func (v *vaultClient) flush() {
|
||||
v.l.Lock()
|
||||
defer v.l.Unlock()
|
||||
v.revLock.Lock()
|
||||
defer v.revLock.Unlock()
|
||||
|
||||
v.client = nil
|
||||
v.clientSys = nil
|
||||
|
||||
Reference in New Issue
Block a user