mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
Fix scanner deadlock on lost global lock (#16726)
This commit is contained in:
1 parent
47dfa62384
commit
d07089ceac
2 files changed
+11
-5
No files matched your search
@@ -689,9 +689,11 @@ func (z *erasureServerPools) NSScanner(ctx context.Context, updates chan<- DataU
|
||||
case updateCloser <- ch:
|
||||
<-ch
|
||||
case <-ctx.Done():
|
||||
mu.Lock()
|
||||
if firstErr == nil {
|
||||
firstErr = ctx.Err()
|
||||
}
|
||||
defer mu.Unlock()
|
||||
}
|
||||
return firstErr
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user