提交 6449861e authored 作者: Rupa Schomaker's avatar Rupa Schomaker

mod_lcr: use switch_cache_db_dismiss_db_handle to reduce persistant

db connections under heavy load.
上级 ab3d7d14
...@@ -445,7 +445,7 @@ static switch_bool_t db_check(char *sql) ...@@ -445,7 +445,7 @@ static switch_bool_t db_check(char *sql)
} }
} }
switch_cache_db_release_db_handle(&dbh); switch_cache_db_dismiss_db_handle(&dbh);
return ret; return ret;
} }
...@@ -581,7 +581,7 @@ static switch_bool_t lcr_execute_sql_callback(char *sql, switch_core_db_callback ...@@ -581,7 +581,7 @@ static switch_bool_t lcr_execute_sql_callback(char *sql, switch_core_db_callback
retval = SWITCH_TRUE; retval = SWITCH_TRUE;
} }
} }
switch_cache_db_release_db_handle(&dbh); switch_cache_db_dismiss_db_handle(&dbh);
return retval; return retval;
} }
...@@ -1175,7 +1175,7 @@ static switch_status_t lcr_load_config() ...@@ -1175,7 +1175,7 @@ static switch_status_t lcr_load_config()
} }
done: done:
switch_cache_db_release_db_handle(&dbh); switch_cache_db_dismiss_db_handle(&dbh);
switch_xml_free(xml); switch_xml_free(xml);
return status; return status;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论