diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-01-29 08:10:47 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-01-29 08:14:28 -0500 |
commit | b319356f0e94a6482c726cf4af96597c211d8d6e (patch) | |
tree | dd34e7cf5ac1ec13be0c816b87dbd5e085163ba7 /src/include/storage/proc.h | |
parent | b60376649600268b75e1e8be86a6a6fe7fb9b3c3 (diff) |
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
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 38943a17671..3441288dd06 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -147,7 +147,7 @@ struct PGPROC TransactionId backendLatestXid; /* Per-backend LWLock. Protects fields below. */ - LWLock *backendLock; /* protects the fields below */ + LWLock backendLock; /* Lock manager data, recording fast-path locks taken by this backend. */ uint64 fpLockBits; /* lock modes held for each fast-path slot */ |