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