From 6360d9628795fc27ff8bc4611641c0b0df11cd88 Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Sun, 27 Jan 2013 23:26:43 +0000 Subject: [PATCH] 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 --- modules/lua/lua_dbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lua/lua_dbd.c b/modules/lua/lua_dbd.c index 4c71a17834..350ec2474b 100644 --- a/modules/lua/lua_dbd.c +++ b/modules/lua/lua_dbd.c @@ -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; -- 2.40.0