mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
pgindent run for 8.3.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.49 2007/10/26 20:45:10 alvherre Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/deadlock.c,v 1.50 2007/11/15 21:14:38 momjian Exp $
|
||||
*
|
||||
* Interface:
|
||||
*
|
||||
@@ -110,7 +110,7 @@ static DEADLOCK_INFO *deadlockDetails;
|
||||
static int nDeadlockDetails;
|
||||
|
||||
/* PGPROC pointer of any blocking autovacuum worker found */
|
||||
static PGPROC *blocking_autovacuum_proc = NULL;
|
||||
static PGPROC *blocking_autovacuum_proc = NULL;
|
||||
|
||||
|
||||
/*
|
||||
@@ -275,7 +275,7 @@ DeadLockCheck(PGPROC *proc)
|
||||
PGPROC *
|
||||
GetBlockingAutoVacuumPgproc(void)
|
||||
{
|
||||
PGPROC *ptr;
|
||||
PGPROC *ptr;
|
||||
|
||||
ptr = blocking_autovacuum_proc;
|
||||
blocking_autovacuum_proc = NULL;
|
||||
@@ -524,7 +524,7 @@ FindLockCycleRecurse(PGPROC *checkProc,
|
||||
/*
|
||||
* Look for a blocking autovacuum. There can be more than
|
||||
* one in the deadlock cycle, in which case we just pick a
|
||||
* random one. We stash the autovacuum worker's PGPROC so
|
||||
* random one. We stash the autovacuum worker's PGPROC so
|
||||
* that the caller can send a cancel signal to it, if
|
||||
* appropriate.
|
||||
*
|
||||
@@ -532,10 +532,10 @@ FindLockCycleRecurse(PGPROC *checkProc,
|
||||
* OK only for checking the PROC_IS_AUTOVACUUM flag,
|
||||
* because that flag is set at process start and never
|
||||
* reset; there is logic elsewhere to avoid cancelling an
|
||||
* autovacuum that is working for preventing Xid wraparound
|
||||
* problems (which needs to read a different vacuumFlag
|
||||
* bit), but we don't do that here to avoid grabbing
|
||||
* ProcArrayLock.
|
||||
* autovacuum that is working for preventing Xid
|
||||
* wraparound problems (which needs to read a different
|
||||
* vacuumFlag bit), but we don't do that here to avoid
|
||||
* grabbing ProcArrayLock.
|
||||
*/
|
||||
if (proc->vacuumFlags & PROC_IS_AUTOVACUUM)
|
||||
blocking_autovacuum_proc = proc;
|
||||
|
Reference in New Issue
Block a user