diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-15 18:11:03 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-15 18:11:07 -0400 |
commit | 36ac359d3621578cefc2156a3917024cdd3b1829 (patch) | |
tree | fa625d5a03040cb31284a531ccee7615bb6fb246 /src/include/storage/proc.h | |
parent | a0ab4f4909a3f52e8b8243d2ae2dbb6f5027136c (diff) |
Rename assorted LWLock tranches.
Choose names that fit into the conventions for wait event names
(particularly, that multi-word names are in the style MultiWordName)
and hopefully convey more information to non-hacker users than the
previous names did.
Also rename SerializablePredicateLockListLock to
SerializablePredicateListLock; the old name was long enough to cause
table formatting problems, plus the double occurrence of "Lock" seems
confusing/error-prone.
Also change a couple of particularly opaque LWLock field names.
Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index ae4f573ab46..1ee9000b2b9 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -188,10 +188,8 @@ struct PGPROC XLogRecPtr clogGroupMemberLsn; /* WAL location of commit record for clog * group member */ - /* Per-backend LWLock. Protects fields below (but not group fields). */ - LWLock backendLock; - /* Lock manager data, recording fast-path locks taken by this backend. */ + LWLock fpInfoLock; /* protects per-backend fast-path state */ uint64 fpLockBits; /* lock modes held for each fast-path slot */ Oid fpRelId[FP_LOCK_SLOTS_PER_BACKEND]; /* slots for rel oids */ bool fpVXIDLock; /* are we holding a fast-path VXID lock? */ |