mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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
This commit is contained in:
@ -889,7 +889,7 @@ tbm_prepare_shared_iterate(TIDBitmap *tbm)
|
||||
pg_atomic_add_fetch_u32(&ptchunks->refcount, 1);
|
||||
|
||||
/* Initialize the iterator lock */
|
||||
LWLockInitialize(&istate->lock, LWTRANCHE_TBM);
|
||||
LWLockInitialize(&istate->lock, LWTRANCHE_SHARED_TIDBITMAP);
|
||||
|
||||
/* Initialize the shared iterator state */
|
||||
istate->schunkbit = 0;
|
||||
|
Reference in New Issue
Block a user