diff options
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 458cd27a386..327f43bb352 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -70,9 +70,9 @@ PGXACT *MyPgXact = NULL; NON_EXEC_STATIC slock_t *ProcStructLock = NULL; /* Pointers to shared-memory structures */ -PROC_HDR *ProcGlobal = NULL; +PROC_HDR *ProcGlobal = NULL; NON_EXEC_STATIC PGPROC *AuxiliaryProcs = NULL; -PGPROC *PreparedXactProcs = NULL; +PGPROC *PreparedXactProcs = NULL; /* If we are waiting for a lock, this points to the associated LOCALLOCK */ static LOCALLOCK *lockAwaited = NULL; @@ -222,9 +222,9 @@ InitProcGlobal(void) /* Common initialization for all PGPROCs, regardless of type. */ /* - * Set up per-PGPROC semaphore, latch, and backendLock. Prepared - * xact dummy PGPROCs don't need these though - they're never - * associated with a real process + * Set up per-PGPROC semaphore, latch, and backendLock. Prepared xact + * dummy PGPROCs don't need these though - they're never associated + * with a real process */ if (i < MaxBackends + NUM_AUXILIARY_PROCS) { @@ -235,12 +235,12 @@ InitProcGlobal(void) procs[i].pgprocno = i; /* - * Newly created PGPROCs for normal backends or for autovacuum must - * be queued up on the appropriate free list. Because there can only - * ever be a small, fixed number of auxiliary processes, no free - * list is used in that case; InitAuxiliaryProcess() instead uses a - * linear search. PGPROCs for prepared transactions are added to a - * free list by TwoPhaseShmemInit(). + * Newly created PGPROCs for normal backends or for autovacuum must be + * queued up on the appropriate free list. Because there can only + * ever be a small, fixed number of auxiliary processes, no free list + * is used in that case; InitAuxiliaryProcess() instead uses a linear + * search. PGPROCs for prepared transactions are added to a free list + * by TwoPhaseShmemInit(). */ if (i < MaxConnections) { @@ -261,8 +261,8 @@ InitProcGlobal(void) } /* - * Save pointers to the blocks of PGPROC structures reserved for - * auxiliary processes and prepared transactions. + * Save pointers to the blocks of PGPROC structures reserved for auxiliary + * processes and prepared transactions. */ AuxiliaryProcs = &procs[MaxBackends]; PreparedXactProcs = &procs[MaxBackends + NUM_AUXILIARY_PROCS]; @@ -340,8 +340,8 @@ InitProcess(void) MarkPostmasterChildActive(); /* - * Initialize all fields of MyProc, except for those previously initialized - * by InitProcGlobal. + * Initialize all fields of MyProc, except for those previously + * initialized by InitProcGlobal. */ SHMQueueElemInit(&(MyProc->links)); MyProc->waitStatus = STATUS_OK; @@ -366,7 +366,7 @@ InitProcess(void) #ifdef USE_ASSERT_CHECKING if (assert_enabled) { - int i; + int i; /* Last process should have released all locks. */ for (i = 0; i < NUM_LOCK_PARTITIONS; i++) @@ -500,8 +500,8 @@ InitAuxiliaryProcess(void) SpinLockRelease(ProcStructLock); /* - * Initialize all fields of MyProc, except for those previously initialized - * by InitProcGlobal. + * Initialize all fields of MyProc, except for those previously + * initialized by InitProcGlobal. */ SHMQueueElemInit(&(MyProc->links)); MyProc->waitStatus = STATUS_OK; @@ -521,7 +521,7 @@ InitAuxiliaryProcess(void) #ifdef USE_ASSERT_CHECKING if (assert_enabled) { - int i; + int i; /* Last process should have released all locks. */ for (i = 0; i < NUM_LOCK_PARTITIONS; i++) @@ -751,7 +751,7 @@ ProcKill(int code, Datum arg) #ifdef USE_ASSERT_CHECKING if (assert_enabled) { - int i; + int i; /* Last process should have released all locks. */ for (i = 0; i < NUM_LOCK_PARTITIONS; i++) @@ -1031,8 +1031,8 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable) /* * Also, now that we will successfully clean up after an ereport, it's * safe to check to see if there's a buffer pin deadlock against the - * Startup process. Of course, that's only necessary if we're doing - * Hot Standby and are not the Startup process ourselves. + * Startup process. Of course, that's only necessary if we're doing Hot + * Standby and are not the Startup process ourselves. */ if (RecoveryInProgress() && !InRecovery) CheckRecoveryConflictDeadlock(); |