Commit 918086e2 authored by antirez's avatar antirez
Browse files

Abort transactions after -READONLY error. Fix #7014.

parent 38514e3c
...@@ -3509,6 +3509,7 @@ int processCommand(client *c) { ...@@ -3509,6 +3509,7 @@ int processCommand(client *c) {
!(c->flags & CLIENT_MASTER) && !(c->flags & CLIENT_MASTER) &&
c->cmd->flags & CMD_WRITE) c->cmd->flags & CMD_WRITE)
{ {
flagTransaction(c);
addReply(c, shared.roslaveerr); addReply(c, shared.roslaveerr);
return C_OK; return C_OK;
} }
......
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