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
d2e16801
Commit
d2e16801
authored
Mar 03, 2014
by
antirez
Browse files
Cluster: invalidate current transaction on redirections.
parent
21557a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
d2e16801
...
...
@@ -2027,6 +2027,7 @@ int processCommand(redisClient *c) {
addReplyError
(
c
,
"Multi keys request invalid in cluster"
);
return
REDIS_OK
;
}
else
if
(
n
!=
server
.
cluster
->
myself
)
{
flagTransaction
(
c
);
addReplySds
(
c
,
sdscatprintf
(
sdsempty
(),
"-%s %d %s:%d
\r\n
"
,
ask
?
"ASK"
:
"MOVED"
,
hashslot
,
n
->
ip
,
n
->
port
));
...
...
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