Skip to content

Commit ee8dd01

Browse files
committed
Temporary fix for #7353 issue about EVAL during -BUSY.
1 parent a4a856d commit ee8dd01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/multi.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ void execCommand(client *c) {
135135
return;
136136
}
137137

138+
/* If we are in -BUSY state, flag the transaction and return the
139+
* -BUSY error, like Redis <= 5. This is a temporary fix, may be changed
140+
* ASAP, see issue #7353 on Github. */
141+
if (server.lua_timedout) {
142+
flagTransaction(c);
143+
addReply(c, shared.slowscripterr);
144+
return;
145+
}
146+
138147
/* Check if we need to abort the EXEC because:
139148
* 1) Some WATCHed key was touched.
140149
* 2) There was a previous error while queueing commands.

0 commit comments

Comments
 (0)