mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
A few more comments
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -477,12 +477,12 @@ do_standby_register(void)
|
|||||||
}
|
}
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
|
||||||
|
/* check if there is a master in this cluster */
|
||||||
master_conn = getMasterConnection(conn, myLocalId, myClusterName, &master_id);
|
master_conn = getMasterConnection(conn, myLocalId, myClusterName, &master_id);
|
||||||
if (!master_conn)
|
if (!master_conn)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Now register the standby */
|
/* Now register the standby */
|
||||||
|
|
||||||
if (force)
|
if (force)
|
||||||
{
|
{
|
||||||
sprintf(sqlquery, "DELETE FROM repmgr_%s.repl_nodes "
|
sprintf(sqlquery, "DELETE FROM repmgr_%s.repl_nodes "
|
||||||
@@ -538,6 +538,7 @@ do_standby_clone(void)
|
|||||||
const char *first_wal_segment = NULL;
|
const char *first_wal_segment = NULL;
|
||||||
const char *last_wal_segment = NULL;
|
const char *last_wal_segment = NULL;
|
||||||
|
|
||||||
|
/* if dest_dir hasn't been provided, initialize to current directory */
|
||||||
if (dest_dir == NULL)
|
if (dest_dir == NULL)
|
||||||
{
|
{
|
||||||
dest_dir = malloc(5);
|
dest_dir = malloc(5);
|
||||||
|
|||||||
Reference in New Issue
Block a user