From 8409727f0ce458c13ca580f68047c3491ae0e368 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Fri, 22 Oct 2010 18:41:31 -0500 Subject: [PATCH] A few more comments --- repmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 48d7ed27..51310369 100644 --- a/repmgr.c +++ b/repmgr.c @@ -477,12 +477,12 @@ do_standby_register(void) } PQclear(res); + /* check if there is a master in this cluster */ master_conn = getMasterConnection(conn, myLocalId, myClusterName, &master_id); if (!master_conn) return; /* Now register the standby */ - if (force) { sprintf(sqlquery, "DELETE FROM repmgr_%s.repl_nodes " @@ -538,6 +538,7 @@ do_standby_clone(void) const char *first_wal_segment = NULL; const char *last_wal_segment = NULL; + /* if dest_dir hasn't been provided, initialize to current directory */ if (dest_dir == NULL) { dest_dir = malloc(5);