CommandFilter API: Support Lua and RM_call() flows.

This commit is contained in:
Yossi Gottlieb
2019-03-18 23:06:38 +02:00
parent 2a5aeef79f
commit 325fc1cb2e
2 changed files with 18 additions and 7 deletions

View File

@ -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>");