mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Remove STATUS_FOUND
Replace the solitary use with a bool. Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/a6f91ead-0ce4-2a34-062b-7ab9813ea308%402ndquadrant.com
This commit is contained in:
@@ -1149,10 +1149,8 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable)
|
||||
}
|
||||
/* I must go before this waiter. Check special case. */
|
||||
if ((lockMethodTable->conflictTab[lockmode] & aheadRequests) == 0 &&
|
||||
LockCheckConflicts(lockMethodTable,
|
||||
lockmode,
|
||||
lock,
|
||||
proclock) == STATUS_OK)
|
||||
!LockCheckConflicts(lockMethodTable, lockmode, lock,
|
||||
proclock))
|
||||
{
|
||||
/* Skip the wait and just grant myself the lock. */
|
||||
GrantLock(lock, proclock, lockmode);
|
||||
@@ -1648,10 +1646,8 @@ ProcLockWakeup(LockMethod lockMethodTable, LOCK *lock)
|
||||
* (b) doesn't conflict with already-held locks.
|
||||
*/
|
||||
if ((lockMethodTable->conflictTab[lockmode] & aheadRequests) == 0 &&
|
||||
LockCheckConflicts(lockMethodTable,
|
||||
lockmode,
|
||||
lock,
|
||||
proc->waitProcLock) == STATUS_OK)
|
||||
!LockCheckConflicts(lockMethodTable, lockmode, lock,
|
||||
proc->waitProcLock))
|
||||
{
|
||||
/* OK to waken */
|
||||
GrantLock(lock, proc->waitProcLock, lockmode);
|
||||
|
||||
Reference in New Issue
Block a user