Abort transactions after -READONLY error. Fix #7014.

This commit is contained in:
antirez 2020-03-23 11:47:37 +01:00
parent 38514e3c8d
commit 918086e253

View File

@ -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;
}