Rename 'need_a_node' to 'config_file_required'

This commit is contained in:
Ian Barwick
2015-03-20 14:56:02 +09:00
parent f096cca84f
commit 66844d057a

View File

@@ -98,7 +98,7 @@ static void help(const char *progname);
static const char *progname; static const char *progname;
static const char *keywords[6]; static const char *keywords[6];
static const char *values[6]; static const char *values[6];
static bool need_a_node = true; static bool config_file_required = true;
/* XXX This should be mapped into a command line option */ /* XXX This should be mapped into a command line option */
bool require_password = false; bool require_password = false;
@@ -475,7 +475,7 @@ main(int argc, char **argv)
* Node configuration information is not needed for all actions, with * Node configuration information is not needed for all actions, with
* STANDBY CLONE being the main exception. * STANDBY CLONE being the main exception.
*/ */
if (need_a_node) if (config_file_required)
{ {
if (options.node == -1) if (options.node == -1)
{ {
@@ -2617,7 +2617,7 @@ check_parameters_for_action(const int action)
error_list_append(_("master database username (-U/--username) required when executing STANDBY CLONE")); error_list_append(_("master database username (-U/--username) required when executing STANDBY CLONE"));
} }
need_a_node = false; config_file_required = false;
break; break;
case WITNESS_CREATE: case WITNESS_CREATE:
/* allow all parameters to be supplied */ /* allow all parameters to be supplied */