Merge pull request #6077 from hashicorp/b-vault-revlock

vault: fix race in accessor revocations
This commit is contained in:
Michael Schurter
2019-08-06 14:28:47 -07:00
committed by GitHub

View File

@@ -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