Skip to content

Commit

Permalink
Abort transactions after -READONLY error. Fix redis#7014.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Mar 23, 2020
1 parent f615e7b commit ddb0ba4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -3509,6 +3509,7 @@ int processCommand(client *c) {
!(c->flags & CLIENT_MASTER) &&
c->cmd->flags & CMD_WRITE)
{
flagTransaction(c);
addReply(c, shared.roslaveerr);
return C_OK;
}
Expand Down

0 comments on commit ddb0ba4

Please sign in to comment.