Commit d2e16801 authored by antirez's avatar antirez
Browse files

Cluster: invalidate current transaction on redirections.

parent 21557a0d
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment