httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1082033 - /httpd/httpd/trunk/modules/lua/lua_vmprep.c
Date Wed, 16 Mar 2011 02:47:58 GMT
Author: fuankg
Date: Wed Mar 16 02:47:58 2011
New Revision: 1082033

URL: http://svn.apache.org/viewvc?rev=1082033&view=rev
Log:
Fixed mod_lua - 2nd trial.

Reverted changed vm_release call from r1082026;
fixed cleanup_lua call.

Modified:
    httpd/httpd/trunk/modules/lua/lua_vmprep.c

Modified: httpd/httpd/trunk/modules/lua/lua_vmprep.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_vmprep.c?rev=1082033&r1=1082032&r2=1082033&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_vmprep.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_vmprep.c Wed Mar 16 02:47:58 2011
@@ -412,7 +412,7 @@ AP_LUA_DECLARE(lua_State*)ap_lua_get_lua
             lua_pushlightuserdata(L, L);
             lua_pushlightuserdata(L, reslist);
             lua_rawset(L,LUA_REGISTRYINDEX);
-            apr_pool_userdata_set(L, spec->file, &vm_release, lifecycle_pool);
+            apr_pool_userdata_set(L, spec->file, vm_release, lifecycle_pool);
         }
     } else {
         if (apr_pool_userdata_get((void **)&L, spec->file,
@@ -420,11 +420,12 @@ AP_LUA_DECLARE(lua_State*)ap_lua_get_lua
 
             if(L==NULL) {
                 ap_log_perror(APLOG_MARK, APLOG_DEBUG, 0, lifecycle_pool,
-                    "creating lua_State with file %s", spec->file);
+                              "creating lua_State with file %s", spec->file);
                 /* not available, so create */
 
                 if(!vm_construct((void **)&L, spec, lifecycle_pool))
-                    apr_pool_userdata_set(L, spec->file, &cleanup_lua, lifecycle_pool);
+                    apr_pool_userdata_set(L, spec->file, cleanup_lua,
+                                          lifecycle_pool);
             }
         }
     }



Mime
View raw message