diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-07-01 11:02:04 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-07-01 11:33:55 +0530 |
commit | 0f934b0739ad28e8e20d8ad22ca80538544ce28a (patch) | |
tree | 56ac62b89bbb4ed23dc169fe7bf5cc347f1d25c7 /src/backend/replication/walsender.c | |
parent | 55c309fc5b08c39f9d27b2a2fa098fde69368b58 (diff) |
Rename standby_slot_names to synchronized_standby_slots.
The standby_slot_names GUC allows the specification of physical standby
slots that must be synchronized before the logical walsenders associated
with logical failover slots. However, for this purpose, the GUC name is
too generic.
Author: Hou Zhijie
Reviewed-by: Bertrand Drouvot, Masahiko Sawada
Backpatch-through: 17
Discussion: https://postgr.es/m/ZnWeUgdHong93fQN@momjian.us
Diffstat (limited to 'src/backend/replication/walsender.c')
-rw-r--r-- | src/backend/replication/walsender.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index c623b07cf02..59d1dfc7e28 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -1727,7 +1727,7 @@ WalSndUpdateProgress(LogicalDecodingContext *ctx, XLogRecPtr lsn, TransactionId /* * Wake up the logical walsender processes with logical failover slots if the - * currently acquired physical slot is specified in standby_slot_names GUC. + * currently acquired physical slot is specified in synchronized_standby_slots GUC. */ void PhysicalWakeupLogicalWalSnd(void) @@ -1742,7 +1742,7 @@ PhysicalWakeupLogicalWalSnd(void) if (RecoveryInProgress()) return; - if (SlotExistsInStandbySlotNames(NameStr(MyReplicationSlot->data.name))) + if (SlotExistsInSyncStandbySlots(NameStr(MyReplicationSlot->data.name))) ConditionVariableBroadcast(&WalSndCtl->wal_confirm_rcv_cv); } |