From 85be96a0bee0e062e2e13f07f0b7aeb456bb7b3a Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 26 Nov 2015 10:20:54 +0900 Subject: [PATCH] Remove unusable setting Not a configuration item or command line option; variable is always false. --- repmgr.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/repmgr.c b/repmgr.c index 59b20685..76d675d4 100644 --- a/repmgr.c +++ b/repmgr.c @@ -110,9 +110,6 @@ static const char *keywords[6]; static const char *values[6]; static bool config_file_required = true; -/* XXX This should be mapped into a command line option */ -bool require_password = false; - /* Initialization of runtime options */ t_runtime_options runtime_options = T_RUNTIME_OPTIONS_INITIALIZER; t_configuration_options options = T_CONFIGURATION_OPTIONS_INITIALIZER; @@ -3362,11 +3359,6 @@ write_primary_conninfo(char *line) { maxlen_snprintf(password_buf, " password=%s", password); } - else if (require_password) - { - log_err(_("password required but none provided and PGPASSWORD not set\n")); - exit(ERR_BAD_PASSWORD); - } if (runtime_options.host[0]) {