mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Add check for max_wal_senders > 0 on master
This commit is contained in:
16
repmgr.c
16
repmgr.c
@@ -2365,6 +2365,22 @@ check_master_config(PGconn *conn, bool exit_on_error)
|
|||||||
config_ok = false;
|
config_ok = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i = guc_set_typed(conn, "max_wal_senders", ">", "0", "integer");
|
||||||
|
if (i == 0 || i == -1)
|
||||||
|
{
|
||||||
|
if (i == 0)
|
||||||
|
log_err(_("%s needs parameter 'max_wal_senders' to be set to be at least 1\n"),
|
||||||
|
progname);
|
||||||
|
|
||||||
|
if(exit_on_error == true)
|
||||||
|
{
|
||||||
|
PQfinish(conn);
|
||||||
|
exit(ERR_BAD_CONFIG);
|
||||||
|
}
|
||||||
|
|
||||||
|
config_ok = false;
|
||||||
|
}
|
||||||
|
|
||||||
return config_ok;
|
return config_ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user