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