mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Make all built-in lwlock tranche IDs fixed.
This makes the values more stable, which seems like a good thing for anybody who needs to look at at them. Alexander Korotkov and Amit Kapila
This commit is contained in:
@@ -473,7 +473,7 @@ ReplicationOriginShmemInit(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
replication_states_ctl->tranche_id = LWLockNewTrancheId();
|
||||
replication_states_ctl->tranche_id = LWTRANCHE_REPLICATION_ORIGIN;
|
||||
replication_states_ctl->tranche.name = "ReplicationOrigins";
|
||||
replication_states_ctl->tranche.array_base =
|
||||
&replication_states[0].lock;
|
||||
|
||||
Reference in New Issue
Block a user