mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Rename WAIT_* constants to PG_WAIT_*.
Windows apparently has a constant named WAIT_TIMEOUT, and some of these other names are pretty generic, too. Insert "PG_" at the front of each name in order to disambiguate. Michael Paquier
This commit is contained in:
@@ -1214,7 +1214,7 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable)
|
||||
else
|
||||
{
|
||||
WaitLatch(MyLatch, WL_LATCH_SET, 0,
|
||||
WAIT_LOCK | locallock->tag.lock.locktag_type);
|
||||
PG_WAIT_LOCK | locallock->tag.lock.locktag_type);
|
||||
ResetLatch(MyLatch);
|
||||
/* check for deadlocks first, as that's probably log-worthy */
|
||||
if (got_deadlock_timeout)
|
||||
|
||||
Reference in New Issue
Block a user