mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
Make clearing of stale debug lock info independent of deleting map entry of lock itself. (#4353)
This is believed to address issue #4337 where stale information for debug locks in shown.
This commit is contained in:
parent
5db1e9f3dd
commit
cae4683971
@ -240,14 +240,12 @@ func (n *nsLockMap) ForceUnlock(volume, path string) {
|
|||||||
if _, found := n.lockMap[param]; found {
|
if _, found := n.lockMap[param]; found {
|
||||||
// Remove lock from the map.
|
// Remove lock from the map.
|
||||||
delete(n.lockMap, param)
|
delete(n.lockMap, param)
|
||||||
|
|
||||||
// delete the lock state entry for given
|
|
||||||
// <volume, path> pair.
|
|
||||||
err := n.deleteLockInfoEntryForVolumePath(param)
|
|
||||||
if err != nil {
|
|
||||||
errorIf(err, "Failed to delete lock info entry")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// delete the lock state entry for given
|
||||||
|
// <volume, path> pair. Ignore error as there
|
||||||
|
// is no way to report it back
|
||||||
|
n.deleteLockInfoEntryForVolumePath(param)
|
||||||
}
|
}
|
||||||
|
|
||||||
// lockInstance - frontend/top-level interface for namespace locks.
|
// lockInstance - frontend/top-level interface for namespace locks.
|
||||||
|
Loading…
Reference in New Issue
Block a user