mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Merge pull request #3853 from itamarhaber/issue-3851
Sets up fake client to select current db in RM_Call()
This commit is contained in:
commit
6b0670daad
@ -2517,6 +2517,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user