mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
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:
committed by
Ian Barwick
parent
a55c224510
commit
2a8861be8b
4
repmgr.c
4
repmgr.c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user