]> granicus.if.org Git - postgresql/commit
Migrate PGPROC's backendLock into PGPROC itself, using a new tranche.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 Jan 2016 13:10:47 +0000 (08:10 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Jan 2016 13:14:28 +0000 (08:14 -0500)
commitb319356f0e94a6482c726cf4af96597c211d8d6e
treedd34e7cf5ac1ec13be0c816b87dbd5e085163ba7
parentb60376649600268b75e1e8be86a6a6fe7fb9b3c3
Migrate PGPROC's backendLock into PGPROC itself, using a new tranche.

Previously, each PGPROC's backendLock was part of the main tranche,
and the PGPROC just contained a pointer.  Now, the actual LWLock is
part of the PGPROC.

As with previous, similar patches, this makes it significantly easier
to identify these lwlocks in LWLOCK_STATS or Trace_lwlocks output
and improves modularity.

Author: Ildus Kurbangaliev
Reviewed-by: Amit Kapila, Robert Haas
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/proc.c
src/include/storage/lwlock.h
src/include/storage/proc.h