Permalink
Browse files

Cluster: invalidate current transaction on redirections.

  • Loading branch information...
1 parent 35e8bc3 commit c5edd91716486b1134aa9318657e38e43445a75d @antirez committed Mar 3, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/redis.c
View
@@ -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));

0 comments on commit c5edd91

Please sign in to comment.