Skip to content

Commit

Permalink
Temporary fix for redis#7353 issue about EVAL during -BUSY.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 9, 2020
1 parent a4a856d commit ee8dd01
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ void execCommand(client *c) {
return;
}

/* If we are in -BUSY state, flag the transaction and return the
* -BUSY error, like Redis <= 5. This is a temporary fix, may be changed
* ASAP, see issue #7353 on Github. */
if (server.lua_timedout) {
flagTransaction(c);
addReply(c, shared.slowscripterr);
return;
}

/* Check if we need to abort the EXEC because:
* 1) Some WATCHed key was touched.
* 2) There was a previous error while queueing commands.
Expand Down

0 comments on commit ee8dd01

Please sign in to comment.