VAULT-444: Use sync.RWMutex rather than DeadlockRWMutex in PKI backend. (#13018)

This commit is contained in:
Victor Rodriguez 2021-11-02 17:02:54 -04:00 committed by GitHub
parent 8b89a14f13
commit 991ab5aeed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3,11 +3,11 @@ package pki
import (
"context"
"strings"
"sync"
"time"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/vault"
)
// Factory creates a new backend implementing the logical.Backend interface
@ -98,10 +98,10 @@ type backend struct {
storage logical.Storage
crlLifetime time.Duration
revokeStorageLock vault.DeadlockRWMutex
revokeStorageLock sync.RWMutex
tidyCASGuard *uint32
tidyStatusLock vault.DeadlockRWMutex
tidyStatusLock sync.RWMutex
tidyStatus *tidyStatus
}