mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
fix: reuser timers in erasure set hotpaths (#11106)
reuser timers in - connectDisks() monitoring - healMRFRoutine() channel timeouts
This commit is contained in:
@@ -87,7 +87,8 @@ func loadBucketMetaCache(ctx context.Context, bucket string) (*bucketMetacache,
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil, ctx.Err()
|
||||
case <-time.After(250 * time.Millisecond):
|
||||
default:
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
}
|
||||
objAPI = newObjectLayerFn()
|
||||
if objAPI == nil {
|
||||
|
||||
Reference in New Issue
Block a user