PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_lua: fix handle releasing function (mod dbd and apr dbd got mixed up)
- This bug causes mod dbd to lose its connections, which is not intended.
- trunk patch: http://svn.apache.org/r1439208
- 2.4.x patch: trunk patch works.
- +1: humbedooh, covener, jailletc36
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
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;