From 0e5f2c53d5af62612ed3854bbddef3f4e0f610ba Mon Sep 17 00:00:00 2001 From: tilghman Date: Tue, 11 Mar 2008 22:59:52 +0000 Subject: Merged revisions 107791 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r107791 | tilghman | 2008-03-11 17:55:16 -0500 (Tue, 11 Mar 2008) | 5 lines An offhand comment from Russell made me realize that the configuration file caching would not work properly for users.conf and any other file read from more than one place. I needed to add the filename which requested the config file to get it to work properly. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@107793 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_config_pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res/res_config_pgsql.c') diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index e0511bbc6..04e4f1409 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -658,7 +658,7 @@ static int destroy_pgsql(const char *database, const char *table, const char *ke static struct ast_config *config_pgsql(const char *database, const char *table, const char *file, struct ast_config *cfg, - struct ast_flags flags, const char *suggested_incl) + struct ast_flags flags, const char *suggested_incl, const char *who_asked) { PGresult *result = NULL; long num_rows; @@ -723,7 +723,7 @@ static struct ast_config *config_pgsql(const char *database, const char *table, char *field_var_val = PQgetvalue(result, rowIndex, 2); char *field_cat_metric = PQgetvalue(result, rowIndex, 3); if (!strcmp(field_var_name, "#include")) { - if (!ast_config_internal_load(field_var_val, cfg, flags, "")) { + if (!ast_config_internal_load(field_var_val, cfg, flags, "", who_asked)) { PQclear(result); ast_mutex_unlock(&pgsql_lock); return NULL; -- cgit v1.2.3