From 95de5ef976cdf5b165f4bde3534c79080bbb323b Mon Sep 17 00:00:00 2001 From: Gianni Ciolli Date: Thu, 18 Aug 2016 15:48:10 +0200 Subject: [PATCH] Bug fix --- repmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repmgr.c b/repmgr.c index a77ad511..a360a233 100644 --- a/repmgr.c +++ b/repmgr.c @@ -5179,8 +5179,10 @@ create_recovery_file(const char *data_dir, PGconn *primary_conn, const char *con { case NO_UPSTREAM_NODE: maxlen_snprintf(where_condition, "type='master'"); + break; default: maxlen_snprintf(where_condition, "id=%d", options.upstream_node); + break; } initPQExpBuffer(&command_output);