mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
Don't delete lock ops entry during state change (#5388)
lock ops entry is removed in deleteLockEntryForOps, it shouldn't be removed in status*To* functions.
This commit is contained in:
committed by
kannappanr
parent
aa7e5c71e9
commit
17301fe45d
@@ -201,8 +201,6 @@ func (n *nsLockMap) statusBlockedToNone(param nsParam, lockSource, opsID string,
|
||||
if lockInfo.status != blockedStatus {
|
||||
return errors.Trace(LockInfoStateNotBlocked{param.volume, param.path, opsID})
|
||||
}
|
||||
// Clear the status by removing the entry for the given `opsID`.
|
||||
delete(n.debugLockMap[param].lockInfo, opsID)
|
||||
|
||||
// Update global lock stats.
|
||||
n.counters.lockTimedOut()
|
||||
|
||||
Reference in New Issue
Block a user