summaryrefslogtreecommitdiff
path: root/src/backend/replication
diff options
context:
space:
mode:
authorRobert Haas2016-02-02 11:42:14 +0000
committerRobert Haas2016-02-02 11:45:55 +0000
commit7191ce8bea0cb110a28faef178efa92bf456e030 (patch)
tree04014e9bfc2ca0dfdb09dec11cd94a2cc84afa81 /src/backend/replication
parent1d0c3b3f8a98b0ed9515ff0a3868266c3bfb5d38 (diff)
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
Diffstat (limited to 'src/backend/replication')
-rw-r--r--src/backend/replication/logical/origin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c
index 757b50eb10b..5af47ec584e 100644
--- a/src/backend/replication/logical/origin.c
+++ b/src/backend/replication/logical/origin.c
@@ -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;