mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
cluster cleanup: standardize error message and return code
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -710,11 +710,11 @@ do_cluster_cleanup(void)
|
||||
res = PQexec(master_conn, sqlquery);
|
||||
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
||||
{
|
||||
log_err(_("cluster cleanup: Couldn't clean history\n%s\n"),
|
||||
log_err(_("cluster cleanup: unable to delete monitoring records\n%s\n"),
|
||||
PQerrorMessage(master_conn));
|
||||
PQclear(res);
|
||||
PQfinish(master_conn);
|
||||
exit(ERR_BAD_CONFIG);
|
||||
exit(ERR_DB_QUERY);
|
||||
}
|
||||
PQclear(res);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user