mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: startup being slow - wait only if IOCount > 0
This commit is contained in:
@@ -676,7 +676,9 @@ func (h *healSequence) queueHealTask(source healSource, healType madmin.HealItem
|
||||
}
|
||||
|
||||
// Wait and proceed if there are active requests
|
||||
waitForLowHTTPReq(opts.IOCount, opts.Sleep)
|
||||
if opts.IOCount > 0 {
|
||||
waitForLowHTTPReq(opts.IOCount, opts.Sleep)
|
||||
}
|
||||
|
||||
h.mutex.Lock()
|
||||
h.scannedItemsMap[healType]++
|
||||
|
||||
Reference in New Issue
Block a user