mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgrd: more fixes for BDR node recovery
This commit is contained in:
@@ -3204,6 +3204,8 @@ get_bdr_node_replication_slot_status(PGconn *conn, const char *node_name)
|
||||
" WHERE node_name = '%s') ",
|
||||
node_name);
|
||||
|
||||
log_verbose(LOG_DEBUG, "get_bdr_node_replication_slot_status():\n %s", query.data);
|
||||
|
||||
res = PQexec(conn, query.data);
|
||||
termPQExpBuffer(&query);
|
||||
|
||||
@@ -3248,7 +3250,11 @@ get_bdr_other_node_name(PGconn *conn, int node_id, char *node_name)
|
||||
{
|
||||
strncpy(node_name, PQgetvalue(res, 0, 0), MAXLEN);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
log_warning(_("get_bdr_other_node_name(): unable to execute query\n %s"),
|
||||
PQerrorMessage(conn));
|
||||
}
|
||||
PQclear(res);
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user