mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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) {
|
func (m *metaCacheRPC) setErr(err string) {
|
||||||
m.mu.Lock()
|
m.mu.Lock()
|
||||||
defer m.mu.Lock()
|
defer m.mu.Unlock()
|
||||||
meta := *m.meta
|
meta := *m.meta
|
||||||
if meta.status != scanStateError {
|
if meta.status != scanStateError {
|
||||||
meta.error = err
|
meta.error = err
|
||||||
|
Loading…
Reference in New Issue
Block a user