summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/eval.c b/src/eval.c
index 1fa08c9dd..84f2bc45e 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -185,7 +185,6 @@ void scriptingInit(int setup) {
if (setup) {
lctx.lua_client = NULL;
- server.script_caller = NULL;
server.script_disable_deny_script = 0;
ldbInit();
}
@@ -470,22 +469,6 @@ sds luaCreateFunction(client *c, robj *body) {
return sha;
}
-void prepareLuaClient(void) {
- /* Select the right DB in the context of the Lua client */
- selectDb(lctx.lua_client,server.script_caller->db->id);
- lctx.lua_client->resp = 2; /* Default is RESP2, scripts can change it. */
-
- /* If we are in MULTI context, flag Lua client as CLIENT_MULTI. */
- if (server.script_caller->flags & CLIENT_MULTI) {
- lctx.lua_client->flags |= CLIENT_MULTI;
- }
-}
-
-void resetLuaClient(void) {
- /* After the script done, remove the MULTI state. */
- lctx.lua_client->flags &= ~CLIENT_MULTI;
-}
-
void evalGenericCommand(client *c, int evalsha) {
lua_State *lua = lctx.lua;
char funcname[43];
@@ -1680,6 +1663,5 @@ void luaLdbLineHook(lua_State *lua, lua_Debug *ar) {
luaError(lua);
}
rctx->start_time = getMonotonicUs();
- rctx->snapshot_time = mstime();
}
}