mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +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:
@@ -506,7 +506,7 @@ ReplicationOriginShmemInit(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
replication_states_ctl->tranche_id = LWTRANCHE_REPLICATION_ORIGIN;
|
||||
replication_states_ctl->tranche_id = LWTRANCHE_REPLICATION_ORIGIN_STATE;
|
||||
|
||||
MemSet(replication_states, 0, ReplicationOriginShmemSize());
|
||||
|
||||
|
@@ -153,7 +153,8 @@ ReplicationSlotsShmemInit(void)
|
||||
|
||||
/* everything else is zeroed by the memset above */
|
||||
SpinLockInit(&slot->mutex);
|
||||
LWLockInitialize(&slot->io_in_progress_lock, LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS);
|
||||
LWLockInitialize(&slot->io_in_progress_lock,
|
||||
LWTRANCHE_REPLICATION_SLOT_IO);
|
||||
ConditionVariableInit(&slot->active_cv);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user