mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 08:56:29 +00:00
fix: added forgotten options.priority value
Patch by Marco Nenciarini <mnencia@debian.org>
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -1695,7 +1695,7 @@ do_witness_create(void)
|
|||||||
/* register ourselves in the master */
|
/* register ourselves in the master */
|
||||||
sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_nodes(id, cluster, name, conninfo, priority, witness) "
|
sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_nodes(id, cluster, name, conninfo, priority, witness) "
|
||||||
"VALUES (%d, '%s', '%s', '%s', %d, true)",
|
"VALUES (%d, '%s', '%s', '%s', %d, true)",
|
||||||
repmgr_schema, options.node, options.cluster_name, options.node_name, options.conninfo);
|
repmgr_schema, options.node, options.cluster_name, options.node_name, options.conninfo, options.priority);
|
||||||
|
|
||||||
log_debug(_("witness create: %s"), sqlquery);
|
log_debug(_("witness create: %s"), sqlquery);
|
||||||
if (!PQexec(masterconn, sqlquery))
|
if (!PQexec(masterconn, sqlquery))
|
||||||
|
|||||||
Reference in New Issue
Block a user