Skip to content

Commit

Permalink
Merge pull request #6077 from hashicorp/b-vault-revlock
Browse files Browse the repository at this point in the history
vault: fix race in accessor revocations
  • Loading branch information
schmichael committed Aug 6, 2019
2 parents fc55f65 + 5d0529c commit d196445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nomad/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d196445

Please sign in to comment.