mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user