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
9ec1b709
Commit
9ec1b709
authored
Feb 20, 2013
by
antirez
Browse files
Cluster: ASKING command fixed, state was not retained.
parent
b8d8b9ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
9ec1b709
...
...
@@ -816,12 +816,16 @@ void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask) {
/* resetClient prepare the client to process the next command */
void
resetClient
(
redisClient
*
c
)
{
redisCommandProc
*
prevcmd
=
c
->
cmd
?
c
->
cmd
->
proc
:
NULL
;
freeClientArgv
(
c
);
c
->
reqtype
=
0
;
c
->
multibulklen
=
0
;
c
->
bulklen
=
-
1
;
/* We clear the ASKING flag as well if we are not inside a MULTI. */
if
(
!
(
c
->
flags
&
REDIS_MULTI
))
c
->
flags
&=
(
~
REDIS_ASKING
);
/* We clear the ASKING flag as well if we are not inside a MULTI, and
* if what we just executed is not the ASKING command itself. */
if
(
!
(
c
->
flags
&
REDIS_MULTI
)
&&
prevcmd
!=
askingCommand
)
c
->
flags
&=
(
~
REDIS_ASKING
);
}
int
processInlineBuffer
(
redisClient
*
c
)
{
...
...
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