Commit 443f279a authored by itamar's avatar itamar
Browse files

Sets up fake client to select current db in RM_Call()

parent 9cc83d2a
......@@ -2460,6 +2460,7 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
/* Setup our fake client for command execution. */
c->flags |= CLIENT_MODULE;
c->db = ctx->client->db;
c->argv = argv;
c->argc = argc;
c->cmd = c->lastcmd = cmd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment