mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 03:20:33 +00:00
Merge "res_config_pgsql: Show error message in reload if not connected."
This commit is contained in:
@@ -1351,6 +1351,9 @@ static int parse_config(int is_reload)
|
|||||||
|
|
||||||
config = ast_config_load(RES_CONFIG_PGSQL_CONF, config_flags);
|
config = ast_config_load(RES_CONFIG_PGSQL_CONF, config_flags);
|
||||||
if (config == CONFIG_STATUS_FILEUNCHANGED) {
|
if (config == CONFIG_STATUS_FILEUNCHANGED) {
|
||||||
|
if (is_reload && pgsqlConn && PQstatus(pgsqlConn) != CONNECTION_OK) {
|
||||||
|
ast_log(LOG_WARNING, "PostgreSQL RealTime: Not connected\n");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user