mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_lua: Remove dead code left over from the old code cache.
The code that used this was commented out in r721594, then removed entirely in r728497, and finally a commit was made intending to remove the last traces of the code cache in r1200513, but this initialization lived on anyway. * modules/lua/mod_lua.c (create_server_config): Remove unused empty hash and rwlock for hash. * modules/lua/mod_lua.h (ap_lua_server_cfg): Remove unneeded hash and rwlock entries. Found by: Bert Huijben <rhuijben{_at_}collab.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1606836 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1960,8 +1960,6 @@ static void *create_server_config(apr_pool_t *p, server_rec *s)
|
|||||||
{
|
{
|
||||||
|
|
||||||
ap_lua_server_cfg *cfg = apr_pcalloc(p, sizeof(ap_lua_server_cfg));
|
ap_lua_server_cfg *cfg = apr_pcalloc(p, sizeof(ap_lua_server_cfg));
|
||||||
cfg->vm_reslists = apr_hash_make(p);
|
|
||||||
apr_thread_rwlock_create(&cfg->vm_reslists_lock, p);
|
|
||||||
cfg->root_path = NULL;
|
cfg->root_path = NULL;
|
||||||
|
|
||||||
return cfg;
|
return cfg;
|
||||||
|
@@ -135,9 +135,6 @@ typedef struct
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
apr_hash_t *vm_reslists;
|
|
||||||
apr_thread_rwlock_t *vm_reslists_lock;
|
|
||||||
|
|
||||||
/* value of the LuaRoot directive */
|
/* value of the LuaRoot directive */
|
||||||
const char *root_path;
|
const char *root_path;
|
||||||
} ap_lua_server_cfg;
|
} ap_lua_server_cfg;
|
||||||
|
Reference in New Issue
Block a user