From 5b4f832f3bc26c995ef732fbfa46c7c11b117cc6 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 20 Mar 2015 15:16:55 +0900 Subject: [PATCH] Only allow --rsync-only option in combination with STANDBY CLONE --- repmgr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repmgr.c b/repmgr.c index 09d60cc1..ac7d22ce 100644 --- a/repmgr.c +++ b/repmgr.c @@ -2630,6 +2630,14 @@ check_parameters_for_action(const int action) break; } + if(action != STANDBY_CLONE) + { + if(runtime_options.rsync_only) + { + error_list_append(_("--rsync-only can only be used when executing STANDBY CLONE.")); + } + } + return; }