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.
master
Klaus Post 4 years ago committed by GitHub
parent 8a16a1a1a9
commit 21a549a83b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      cmd/erasure.go

@ -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…
Cancel
Save