Hi,
There's two almost identical pieces of code in LockRelease and
LockReleaseAll that do the opposite of GrantLock.
Here's a small patch that replaces those pieces with a static UnGrantLock
function.
This is preparation for the two-phase commit patch, since that introduces
more calls to UnGrantLock.
- Heikki