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:
Krishnan Parthasarathi
2018-01-17 01:30:12 +05:30
committed by kannappanr
parent aa7e5c71e9
commit 17301fe45d
2 changed files with 30 additions and 2 deletions
-2
View File
@@ -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()