From b319356f0e94a6482c726cf4af96597c211d8d6e Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 29 Jan 2016 08:10:47 -0500 Subject: 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/include/storage/proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/storage/proc.h') 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 */ -- cgit v1.2.3