mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
Parameterize record creation/update queries
Also merge the main functionality into a common function to avoid duplication.
This commit is contained in:
@@ -544,6 +544,8 @@ do_master_register(void)
|
||||
strncpy(node_info.slot_name, repmgr_slot_name_ptr, MAXLEN);
|
||||
node_info.priority = config_file_options.priority;
|
||||
|
||||
// XXX if upstream_node_id set, warn that it will be ignored
|
||||
|
||||
if (record_found)
|
||||
record_created = update_node_record(conn,
|
||||
"master register",
|
||||
|
||||
Reference in New Issue
Block a user