mirror of
https://github.com/minio/minio.git
synced 2025-07-17 04:32:43 -04:00
fix: keep MRF channel open to avoid random CI crash (#10686)
There doesn't seem to be any benefit to closing the channel, so just keep it open and let it die with the server.
This commit is contained in:
parent
8a16a1a1a9
commit
21a549a83b
@ -81,14 +81,6 @@ func (er erasureObjects) SetDriveCount() int {
|
|||||||
func (er erasureObjects) Shutdown(ctx context.Context) error {
|
func (er erasureObjects) Shutdown(ctx context.Context) error {
|
||||||
// Add any object layer shutdown activities here.
|
// Add any object layer shutdown activities here.
|
||||||
closeStorageDisks(er.getDisks())
|
closeStorageDisks(er.getDisks())
|
||||||
select {
|
|
||||||
case _, ok := <-er.mrfOpCh:
|
|
||||||
if ok {
|
|
||||||
close(er.mrfOpCh)
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
close(er.mrfOpCh)
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user