From 98479d7ffdfd1e5f5237b73bb612e0c648c0f5f0 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 13 Sep 2021 17:11:39 +0100 Subject: [PATCH] Fix deadlock when error during metacache generation (#13201) A typo forgot to release a lock after acquiring it. --- cmd/metacache-set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/metacache-set.go b/cmd/metacache-set.go index 051c1b653..5924b3f6b 100644 --- a/cmd/metacache-set.go +++ b/cmd/metacache-set.go @@ -599,7 +599,7 @@ type metaCacheRPC struct { func (m *metaCacheRPC) setErr(err string) { m.mu.Lock() - defer m.mu.Lock() + defer m.mu.Unlock() meta := *m.meta if meta.status != scanStateError { meta.error = err