mirror of
https://github.com/minio/minio.git
synced 2025-04-22 11:26:36 -04: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 {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
if !timer.Stop() {
|
if !timer.Stop() {
|
||||||
if d.isScanner {
|
|
||||||
globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
|
|
||||||
}
|
|
||||||
<-timer.C
|
<-timer.C
|
||||||
}
|
}
|
||||||
|
if d.isScanner {
|
||||||
|
globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
case <-timer.C:
|
case <-timer.C:
|
||||||
if d.isScanner {
|
if d.isScanner {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user