mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
Avoid checking config file when performing standby clone action
Signed-off-by: Daniel Farina <daniel@heroku.com>
This commit is contained in:
17
repmgr.c
17
repmgr.c
@@ -264,14 +264,19 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read the configuration file: repmgr.conf
|
* Read the configuration file: repmgr.conf, but only if we're not doing a
|
||||||
|
* STANDBY CLONE action: it is not necessary to have the configuration file
|
||||||
|
* in that case.
|
||||||
*/
|
*/
|
||||||
parse_config(config_file, &config);
|
if (action != STANDBY_CLONE)
|
||||||
if (config.node == -1)
|
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Node information is missing. "
|
parse_config(config_file, &config);
|
||||||
"Check the configuration file.\n");
|
if (config.node == -1)
|
||||||
exit(1);
|
{
|
||||||
|
fprintf(stderr, "Node information is missing. "
|
||||||
|
"Check the configuration file.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
keywords[2] = "user";
|
keywords[2] = "user";
|
||||||
|
|||||||
Reference in New Issue
Block a user