mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Add name to nodes and show it for the standby in repl_status.
This commit is contained in:
@@ -858,9 +858,10 @@ checkNodeConfiguration(char *conninfo)
|
||||
log_info(_("%s Adding node %d to cluster '%s'\n"),
|
||||
progname, local_options.node, local_options.cluster_name);
|
||||
sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_nodes "
|
||||
"VALUES (%d, '%s', '%s', 'f')",
|
||||
"VALUES (%d, '%s', '%s', '%s', 0, 'f')",
|
||||
repmgr_schema, local_options.node,
|
||||
local_options.cluster_name,
|
||||
local_options.standby_name,
|
||||
local_options.conninfo);
|
||||
|
||||
if (!PQexec(primaryConn, sqlquery))
|
||||
|
||||
Reference in New Issue
Block a user