diff options
Diffstat (limited to 'src/backend/storage/ipc/procarray.c')
-rw-r--r-- | src/backend/storage/ipc/procarray.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index bf38470f01d..0f637556ccb 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -106,9 +106,6 @@ static TransactionId *KnownAssignedXids; static bool *KnownAssignedXidsValid; static TransactionId latestObservedXid = InvalidTransactionId; -/* LWLock tranche for backend locks */ -static LWLockTranche ProcLWLockTranche; - /* * If we're in STANDBY_SNAPSHOT_PENDING state, standbySnapshotPendingXmin is * the highest xid that might still be running that we don't have in @@ -266,11 +263,7 @@ CreateSharedProcArray(void) } /* Register and initialize fields of ProcLWLockTranche */ - ProcLWLockTranche.name = "proc"; - ProcLWLockTranche.array_base = (char *) (ProcGlobal->allProcs) + - offsetof(PGPROC, backendLock); - ProcLWLockTranche.array_stride = sizeof(PGPROC); - LWLockRegisterTranche(LWTRANCHE_PROC, &ProcLWLockTranche); + LWLockRegisterTranche(LWTRANCHE_PROC, "proc"); } /* |