From: Daniel Gruno Date: Sat, 20 Apr 2013 07:18:23 +0000 (+0000) Subject: r.started already exists as a built in variable, so let's not make it a function... X-Git-Tag: 2.5.0-alpha~5562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f39d246e84af2e0eede2376679286a9fac8fa45;p=apache r.started already exists as a built in variable, so let's not make it a function as well. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1470117 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index aad4730ebc..6af2184f99 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -1092,16 +1092,6 @@ static int lua_ap_scoreboard_worker(lua_State *L) return 0; } -/* - * lua_ap_restarted; r:started() - Returns the timestamp of last server - * (re)start - */ -static int lua_ap_restarted(lua_State *L) -{ - lua_pushnumber(L, ap_scoreboard_image->global->restart_time); - return 1; -} - /* * lua_ap_clock; r:clock() - Returns timestamp with microsecond precision */ @@ -1996,8 +1986,6 @@ AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p) makefun(&lua_ap_scoreboard_process, APL_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "scoreboard_worker", APR_HASH_KEY_STRING, makefun(&lua_ap_scoreboard_worker, APL_REQ_FUNTYPE_LUACFUN, p)); - apr_hash_set(dispatch, "started", APR_HASH_KEY_STRING, - makefun(&lua_ap_restarted, APL_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "clock", APR_HASH_KEY_STRING, makefun(&lua_ap_clock, APL_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "requestbody", APR_HASH_KEY_STRING,