summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2019-03-18 23:06:38 +0200
committerYossi Gottlieb <yossigo@gmail.com>2019-03-18 23:06:38 +0200
commit325fc1cb2e2e15a99e5d012184d177dc19257036 (patch)
tree9a05dc195ca1d47d3b9056ba2ecfc4cba63f88fd /src/scripting.c
parent2a5aeef79f894b80024d49ec1036ac03ae7ac5c5 (diff)
downloadredis-325fc1cb2e2e15a99e5d012184d177dc19257036.tar.gz
CommandFilter API: Support Lua and RM_call() flows.
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scripting.c b/src/scripting.c
index cbbf43fb1..032bfdf10 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -462,6 +462,11 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
c->argc = argc;
c->user = server.lua_caller->user;
+ /* Process module hooks */
+ moduleCallCommandFilters(c);
+ argv = c->argv;
+ argc = c->argc;
+
/* Log the command if debugging is active. */
if (ldb.active && ldb.step) {
sds cmdlog = sdsnew("<redis>");