mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Add a check to ensure 'hot_standby=on' on master. While this parameter
doesn't have an effect here it will be a reminder for users, besides will reduce things user have to do on the standby
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -715,6 +715,12 @@ do_standby_clone(void)
|
|||||||
log_err(_("%s needs parameter 'archive_mode' to be set to 'on'\n"), progname);
|
log_err(_("%s needs parameter 'archive_mode' to be set to 'on'\n"), progname);
|
||||||
exit(ERR_BAD_CONFIG);
|
exit(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
if (!guc_setted(conn, "hot_standby", "=", "on"))
|
||||||
|
{
|
||||||
|
PQfinish(conn);
|
||||||
|
log_err(_("%s needs parameter 'hot_standby' to be set to 'on'\n"), progname);
|
||||||
|
exit(ERR_BAD_CONFIG);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if the tablespace locations exists and that we can write to
|
* Check if the tablespace locations exists and that we can write to
|
||||||
|
|||||||
Reference in New Issue
Block a user