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
d827dbfd
Commit
d827dbfd
authored
Mar 11, 2016
by
Chris Thunes
Committed by
antirez
May 05, 2016
Browse files
Ensure slots are rechecked on EXEC.
Fixes #2515.
parent
91b49667
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
d827dbfd
...
...
@@ -2385,7 +2385,8 @@ int processCommand(client *c) {
!
(
c
->
flags
&
CLIENT_MASTER
)
&&
!
(
c
->
flags
&
CLIENT_LUA
&&
server
.
lua_caller
->
flags
&
CLIENT_MASTER
)
&&
!
(
c
->
cmd
->
getkeys_proc
==
NULL
&&
c
->
cmd
->
firstkey
==
0
))
!
(
c
->
cmd
->
getkeys_proc
==
NULL
&&
c
->
cmd
->
firstkey
==
0
&&
c
->
cmd
->
proc
!=
execCommand
))
{
int
hashslot
;
...
...
@@ -2397,7 +2398,11 @@ int processCommand(client *c) {
int
error_code
;
clusterNode
*
n
=
getNodeByQuery
(
c
,
c
->
cmd
,
c
->
argv
,
c
->
argc
,
&
hashslot
,
&
error_code
);
if
(
n
==
NULL
||
n
!=
server
.
cluster
->
myself
)
{
flagTransaction
(
c
);
if
(
c
->
cmd
->
proc
==
execCommand
)
{
discardTransaction
(
c
);
}
else
{
flagTransaction
(
c
);
}
clusterRedirectClient
(
c
,
n
,
hashslot
,
error_code
);
return
C_OK
;
}
...
...
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