diff options
author | meir@redislabs.com <meir@redislabs.com> | 2021-10-05 17:03:12 +0300 |
---|---|---|
committer | meir <meir@redis.com> | 2021-12-01 23:31:08 +0200 |
commit | e0cd580aefe13e49df802fec5135e4f22d46e758 (patch) | |
tree | c6fd1708d06beafb26b3d31d29f5b17a5c133110 /src/debug.c | |
parent | 22aab1ce94f5725f1c8d0fa3a062fd2e12957967 (diff) | |
download | redis-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/debug.c')
-rw-r--r-- | src/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index 8776de38f..d4f3f5dd2 100644 --- a/src/debug.c +++ b/src/debug.c @@ -919,7 +919,7 @@ NULL addReplyStatus(c,"Apparently Redis did not crash: test passed"); } else if (!strcasecmp(c->argv[1]->ptr,"set-disable-deny-scripts") && c->argc == 3) { - server.lua_disable_deny_script = atoi(c->argv[2]->ptr);; + server.script_disable_deny_script = atoi(c->argv[2]->ptr);; addReply(c,shared.ok); } else if (!strcasecmp(c->argv[1]->ptr,"config-rewrite-force-all") && c->argc == 2) { |