From f2a47b0e402d76284b63847f410730f28316349a Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Thu, 23 Feb 2023 15:16:49 -0500 Subject: [PATCH] Fix inmem layer unlock bug (#19323) --- vault/cluster/inmem_layer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vault/cluster/inmem_layer.go b/vault/cluster/inmem_layer.go index 538dc374a42d..36053ec96bbb 100644 --- a/vault/cluster/inmem_layer.go +++ b/vault/cluster/inmem_layer.go @@ -132,6 +132,7 @@ func (l *InmemLayer) Dial(addr string, timeout time.Duration, tlsConfig *tls.Con // gRPC sets a deadline of 20 seconds on the dail attempt, so // matching that here. time.Sleep(time.Second * 20) + l.l.Unlock() return nil, deadlineError("i/o timeout") }