summaryrefslogtreecommitdiff
path: root/src/acl.c
diff options
context:
space:
mode:
authormeir@redislabs.com <meir@redislabs.com>2021-10-05 17:03:12 +0300
committermeir <meir@redis.com>2021-12-01 23:31:08 +0200
commite0cd580aefe13e49df802fec5135e4f22d46e758 (patch)
treec6fd1708d06beafb26b3d31d29f5b17a5c133110 /src/acl.c
parent22aab1ce94f5725f1c8d0fa3a062fd2e12957967 (diff)
downloadredis-e0cd580aefe13e49df802fec5135e4f22d46e758.tar.gz
Redis Functions - Move Lua related variable into luaCtx struct
The following variable was renamed: 1. lua_caller -> script_caller 2. lua_time_limit -> script_time_limit 3. lua_timedout -> script_timedout 4. lua_oom -> script_oom 5. lua_disable_deny_script -> script_disable_deny_script 6. in_eval -> in_script The following variables was moved to lctx under eval.c 1. lua 2. lua_client 3. lua_cur_script 4. lua_scripts 5. lua_scripts_mem 6. lua_replicate_commands 7. lua_write_dirty 8. lua_random_dirty 9. lua_multi_emitted 10. lua_repl 11. lua_kill 12. lua_time_start 13. lua_time_snapshot This commit is in a low risk of introducing any issues and it is just moving varibales around and not changing any logic.
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acl.c b/src/acl.c
index 5d1598b39..9c23cffa8 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -1897,7 +1897,7 @@ void addACLLogEntry(client *c, int reason, int context, int argpos, sds username
}
client *realclient = c;
- if (realclient->flags & CLIENT_LUA) realclient = server.lua_caller;
+ if (realclient->flags & CLIENT_LUA) realclient = server.script_caller;
le->cinfo = catClientInfoString(sdsempty(),realclient);
le->context = context;