mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
fix: Time ILM Actions for scanner info (#17493)
ILM Actions were not timed fix it.
This commit is contained in:
parent
f3248a4b37
commit
bf8a68879c
@ -941,7 +941,7 @@ func (i *scannerItem) applyLifecycle(ctx context.Context, o ObjectLayer, oi Obje
|
||||
console.Debugf(applyActionsLogPrefix+" lifecycle: %q Initial scan: %v\n", i.objectPath(), lcEvt.Action)
|
||||
}
|
||||
}
|
||||
defer globalScannerMetrics.timeILM(lcEvt.Action)
|
||||
defer globalScannerMetrics.timeILM(lcEvt.Action)()
|
||||
|
||||
switch lcEvt.Action {
|
||||
case lifecycle.DeleteAction, lifecycle.DeleteVersionAction, lifecycle.DeleteRestoredAction, lifecycle.DeleteRestoredVersionAction:
|
||||
|
Loading…
Reference in New Issue
Block a user