VAULT-444: Use sync.RWMutex rather than DeadlockRWMutex in PKI backend. (#13018)
This commit is contained in:
parent
8b89a14f13
commit
991ab5aeed
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue