mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Use the perfStandby field instead of the method because we don't want to try to grab the readlock when we're servicing a request (#11793)
This commit is contained in:
parent
ba3f54f3d2
commit
acde7a66f6
@ -1168,7 +1168,7 @@ func (b *SystemBackend) handleRemount(ctx context.Context, req *logical.Request,
|
||||
}
|
||||
|
||||
// Attempt remount
|
||||
if err := b.Core.remount(ctx, fromPath, toPath, !b.Core.PerfStandby()); err != nil {
|
||||
if err := b.Core.remount(ctx, fromPath, toPath, !b.Core.perfStandby); err != nil {
|
||||
b.Backend.Logger().Error("remount failed", "from_path", fromPath, "to_path", toPath, "error", err)
|
||||
return handleError(err)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user