Fixing inaccurate option checking (#230)

The incompatibility between Barman mode and use_replication_slots was
not checked properly, and did not cause repmgr to exit.
This commit is contained in:
Gianni Ciolli
2016-08-18 10:51:36 +02:00
committed by Ian Barwick
parent a55c224510
commit 2a8861be8b

View File

@@ -863,9 +863,11 @@ main(int argc, char **argv)
if (action == STANDBY_CLONE &&
! runtime_options.without_barman
&& strcmp(options.barman_server, "") == 0)
&& strcmp(options.barman_server, "") != 0
&& options.use_replication_slots)
{
log_err(_("STANDBY CLONE in Barman mode is incompatible with configuration option \"use_replication_slots\""));
exit(ERR_BAD_CONFIG);
}
/* Initialise the repmgr schema name */