need to provide the follow target node record for node follow internal

otherwise fails when using a dedicated replication user.

WIP.
This commit is contained in:
Ian Barwick
2022-05-16 15:50:02 +09:00
parent e27f213949
commit 4a73bdcfd0
2 changed files with 19 additions and 6 deletions

View File

@@ -3348,10 +3348,9 @@ do_standby_follow_internal(PGconn *primary_conn, PGconn *follow_target_conn, t_n
update_node_record_slot_name(primary_conn, config_file_options.node_id, local_node_record.slot_name);
}
if (create_replication_slot(follow_target_conn,
local_node_record.slot_name,
NULL,
follow_target_node_record,
output) == false)
{
log_error("%s", output->data);