aboutsummaryrefslogtreecommitdiff
path: root/contrib/userlock/user_locks.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/userlock/user_locks.c')
-rw-r--r--contrib/userlock/user_locks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/userlock/user_locks.c b/contrib/userlock/user_locks.c
index 1e2bd384655..0cfc5a2d861 100644
--- a/contrib/userlock/user_locks.c
+++ b/contrib/userlock/user_locks.c
@@ -33,8 +33,8 @@ user_lock(uint32 id1, uint32 id2, LOCKMODE lockmode)
SET_LOCKTAG_USERLOCK(tag, id1, id2);
- return (LockAcquire(USER_LOCKMETHOD, &tag, InvalidTransactionId,
- lockmode, true) != LOCKACQUIRE_NOT_AVAIL);
+ return (LockAcquire(USER_LOCKMETHOD, &tag, false,
+ lockmode, true, true) != LOCKACQUIRE_NOT_AVAIL);
}
int
@@ -44,7 +44,7 @@ user_unlock(uint32 id1, uint32 id2, LOCKMODE lockmode)
SET_LOCKTAG_USERLOCK(tag, id1, id2);
- return LockRelease(USER_LOCKMETHOD, &tag, InvalidTransactionId, lockmode);
+ return LockRelease(USER_LOCKMETHOD, &tag, lockmode, true);
}
int