Skip to content

Commit

Permalink
Cluster: invalidate current transaction on redirections.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Mar 3, 2014
1 parent 35e8bc3 commit c5edd91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis.c
Expand Up @@ -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));
Expand Down

0 comments on commit c5edd91

Please sign in to comment.