mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
Remove duration field from lock instrumentation (#4111)
Duration for which a lock was held can be computed from the `Since` field of `OpsLockState`. It is the difference between current time and time at which the namespace lock was held. This change avoids superfluous instrumentation.
This commit is contained in:
committed by
Harshavardhana
parent
7765081db7
commit
3032f0f505
@@ -141,7 +141,6 @@ func getSystemLockState() (SystemLockState, error) {
|
||||
LockType: lockInfo.lType,
|
||||
Status: lockInfo.status,
|
||||
Since: lockInfo.since,
|
||||
Duration: UTCNow().Sub(lockInfo.since),
|
||||
})
|
||||
}
|
||||
lockState.LocksInfoPerObject = append(lockState.LocksInfoPerObject, volLockInfo)
|
||||
|
||||
Reference in New Issue
Block a user