mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
Fix deadlock when error during metacache generation (#13201)
A typo forgot to release a lock after acquiring it.
This commit is contained in:
parent
90e505e58f
commit
98479d7ffd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user