mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
Reorganize request handling code so that we don't touch storage until we have the stateLock. (#11835)
This commit is contained in:
@@ -42,6 +42,11 @@ var (
|
||||
// unrecoverable error.
|
||||
// e.g.: misconfigured or disconnected storage backend.
|
||||
ErrUnrecoverable = errors.New("unrecoverable error")
|
||||
|
||||
// ErrMissingRequiredState is returned when a request can't be satisfied
|
||||
// with the data in the local node's storage, based on the provided
|
||||
// X-Vault-Index request header.
|
||||
ErrMissingRequiredState = errors.New("required index state not present")
|
||||
)
|
||||
|
||||
type HTTPCodedError interface {
|
||||
|
||||
Reference in New Issue
Block a user