mirror of https://github.com/minio/minio.git
fix: leaking offline disks in MarkOffline() thread (#18414)
`monitorAndConnectEndpoints` will continue to attempt to reconnect offline disks. Since disks were never closed, a `MarkOffline` would continue to try to check these disks forever. Close previous disks.
This commit is contained in:
parent
6ef8e87492
commit
2229509362
|
@ -217,6 +217,10 @@ func (s *erasureSets) connectDisks() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if cdisk != nil {
|
||||||
|
// Close previous offline disk.
|
||||||
|
cdisk.Close()
|
||||||
|
}
|
||||||
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(endpoint Endpoint) {
|
go func(endpoint Endpoint) {
|
||||||
|
|
Loading…
Reference in New Issue