From 66245ccc03a8b2cee42265ba31aa2f361104d2ea Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 14 Jan 2016 23:12:41 +0900 Subject: [PATCH] Add warning if -r used with -c --- repmgr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 2508ff78..9b9fcfdb 100644 --- a/repmgr.c +++ b/repmgr.c @@ -3717,7 +3717,10 @@ check_parameters_for_action(const int action) { error_list_append(&cli_errors, _("master database username (-U/--username) required when executing STANDBY CLONE")); } - + if (runtime_options.fast_checkpoint && runtime_options.rsync_only) + { + error_list_append(&cli_warnings, _("-c/--fast-checkpoint has no effect when using -r/--rsync-only ")); + } config_file_required = false; break; case STANDBY_SWITCHOVER: