summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-02-02 16:30:52 +0100
committerantirez <antirez@gmail.com>2012-02-02 16:30:52 +0100
commitce8b772be7dcd0dec767c7bdfa3b8702806d69c4 (patch)
tree0eaa595f8e0956746e18da269a9c95b7dc3b6365 /src/scripting.c
parentd876678b5eb0db0df66a658faeb8fb71e236a634 (diff)
downloadredis-ce8b772be7dcd0dec767c7bdfa3b8702806d69c4.tar.gz
Now Lua scripts dispatch Redis commands properly calling the call() function. In order to make this possible call() was improved with a new flags argument that controls how the Redis command is executed.
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 2eac840c5..75788a3a5 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -221,7 +221,8 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
if (cmd->flags & REDIS_CMD_WRITE) server.lua_write_dirty = 1;
/* Run the command */
- cmd->proc(c);
+ c->cmd = cmd;
+ call(c,REDIS_CALL_SLOWLOG | REDIS_CALL_STATS);
/* Convert the result of the Redis command into a suitable Lua type.
* The first thing we need is to create a single string from the client