From acde7a66f617f99d2021fd079eab45fe0e7b8eb4 Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Tue, 8 Jun 2021 17:55:38 +0200 Subject: [PATCH] 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) --- vault/logical_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/logical_system.go b/vault/logical_system.go index 20ca9dee26..640427971b 100644 --- a/vault/logical_system.go +++ b/vault/logical_system.go @@ -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) }