Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3f3dc3b8
Commit
3f3dc3b8
authored
Mar 06, 2017
by
itamar
Committed by
antirez
Jul 06, 2017
Browse files
Sets up fake client to select current db in RM_Call()
parent
ba773724
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
3f3dc3b8
...
@@ -2512,6 +2512,7 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
...
@@ -2512,6 +2512,7 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
/* Setup our fake client for command execution. */
/* Setup our fake client for command execution. */
c
->
flags
|=
CLIENT_MODULE
;
c
->
flags
|=
CLIENT_MODULE
;
c
->
db
=
ctx
->
client
->
db
;
c
->
argv
=
argv
;
c
->
argv
=
argv
;
c
->
argc
=
argc
;
c
->
argc
=
argc
;
c
->
cmd
=
c
->
lastcmd
=
cmd
;
c
->
cmd
=
c
->
lastcmd
=
cmd
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment