mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
"witness register": set upstream_node_id to that of the primary
This commit is contained in:
@@ -234,11 +234,10 @@ do_witness_register(void)
|
|||||||
/* these values are mandatory, setting them to anything else has no point */
|
/* these values are mandatory, setting them to anything else has no point */
|
||||||
node_record.type = WITNESS;
|
node_record.type = WITNESS;
|
||||||
node_record.priority = 0;
|
node_record.priority = 0;
|
||||||
node_record.upstream_node_id = NO_UPSTREAM_NODE;
|
node_record.upstream_node_id = get_primary_node_id(primary_conn);
|
||||||
|
|
||||||
if (record_status == RECORD_FOUND)
|
if (record_status == RECORD_FOUND)
|
||||||
{
|
{
|
||||||
|
|
||||||
record_created = update_node_record(primary_conn,
|
record_created = update_node_record(primary_conn,
|
||||||
"witness register",
|
"witness register",
|
||||||
&node_record);
|
&node_record);
|
||||||
|
|||||||
Reference in New Issue
Block a user