mirror of
https://github.com/minio/minio.git
synced 2025-07-14 11:21:52 -04:00
locks: Top locks to build list of locks based on resource name (#13134)
Top locks fails to show resources of multi delete objects call because this is about a single lock of multiple resources. This commit fixes it.
This commit is contained in:
parent
47e54fb823
commit
a700415c9c
@ -382,10 +382,10 @@ func topLockEntries(peerLocks []*PeerLocks, stale bool) madmin.LockEntries {
|
||||
for _, locks := range peerLock.Locks {
|
||||
for k, v := range locks {
|
||||
for _, lockReqInfo := range v {
|
||||
if val, ok := entryMap[lockReqInfo.UID]; ok {
|
||||
if val, ok := entryMap[k]; ok {
|
||||
val.ServerList = append(val.ServerList, peerLock.Addr)
|
||||
} else {
|
||||
entryMap[lockReqInfo.UID] = lriToLockEntry(lockReqInfo, k, peerLock.Addr)
|
||||
entryMap[k] = lriToLockEntry(lockReqInfo, k, peerLock.Addr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user