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
{
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;
return cfg;
typedef struct
{
- apr_hash_t *vm_reslists;
- apr_thread_rwlock_t *vm_reslists_lock;
-
/* value of the LuaRoot directive */
const char *root_path;
} ap_lua_server_cfg;