1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

apr dbd and mod dbd have been mixed up in the handle closing function, so let's sort it out.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1439208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2013-01-27 23:26:43 +00:00
parent fddcc9c8a1
commit 6360d96287

View File

@@ -65,14 +65,14 @@ int lua_db_close(lua_State *L)
db = lua_get_db_handle(L);
if (db && db->alive) {
if (db->type == LUA_DBTYPE_MOD_DBD) {
if (db->type == LUA_DBTYPE_APR_DBD) {
rc = apr_dbd_close(db->driver, db->handle);
if (db->pool) apr_pool_destroy(db->pool);
}
else {
lua_ap_dbd_close = APR_RETRIEVE_OPTIONAL_FN(ap_dbd_close);
if (lua_ap_dbd_close != NULL)
if (db->dbdhandle) lua_ap_dbd_close(db->server, db->dbdhandle);
if (db->pool) apr_pool_destroy(db->pool);
}
db->driver = NULL;