We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35fdf1 commit e2046b3Copy full SHA for e2046b3
src/multi.c
@@ -58,6 +58,13 @@ void queueMultiCommand(client *c) {
58
multiCmd *mc;
59
int j;
60
61
+ /* No sense to waste memory if the transaction is already aborted.
62
+ * this is useful in case client sends these in a pipeline, or doesn't
63
+ * bother to read previous responses and didn't notice the multi was already
64
+ * aborted. */
65
+ if (c->flags & CLIENT_DIRTY_EXEC)
66
+ return;
67
+
68
c->mstate.commands = zrealloc(c->mstate.commands,
69
sizeof(multiCmd)*(c->mstate.count+1));
70
mc = c->mstate.commands+c->mstate.count;
0 commit comments