mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Use LOCKBIT_ON() instead of a bit shift in a few places.
We do this mostly everywhere, so it seems just as well to do it here, too. Thomas Munro
This commit is contained in:
@@ -608,7 +608,7 @@ FindLockCycleRecurse(PGPROC *checkProc,
|
||||
break;
|
||||
|
||||
/* Is there a conflict with this guy's request? */
|
||||
if (((1 << proc->waitLockMode) & conflictMask) != 0)
|
||||
if ((LOCKBIT_ON(proc->waitLockMode) & conflictMask) != 0)
|
||||
{
|
||||
/* This proc soft-blocks checkProc */
|
||||
if (FindLockCycleRecurse(proc, depth + 1,
|
||||
@@ -648,7 +648,7 @@ FindLockCycleRecurse(PGPROC *checkProc,
|
||||
break;
|
||||
|
||||
/* Is there a conflict with this guy's request? */
|
||||
if (((1 << proc->waitLockMode) & conflictMask) != 0)
|
||||
if ((LOCKBIT_ON(proc->waitLockMode) & conflictMask) != 0)
|
||||
{
|
||||
/* This proc soft-blocks checkProc */
|
||||
if (FindLockCycleRecurse(proc, depth + 1,
|
||||
|
||||
Reference in New Issue
Block a user