mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
before return make globalScannerMetrics.incTime call (#17230)
This commit is contained in:
parent
b06d7bf834
commit
7d433f16c4
@ -1346,11 +1346,11 @@ func (d *dynamicSleeper) Timer(ctx context.Context) func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
if !timer.Stop() {
|
||||
if d.isScanner {
|
||||
globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
|
||||
}
|
||||
<-timer.C
|
||||
}
|
||||
if d.isScanner {
|
||||
globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
|
||||
}
|
||||
return
|
||||
case <-timer.C:
|
||||
if d.isScanner {
|
||||
|
Loading…
x
Reference in New Issue
Block a user