"vscode:/vscode.git/clone" did not exist on "183bdc11c0d3a99eefee1871a567a1911ee0d4f6"
Commit e2046b30 authored by Oran Agra's avatar Oran Agra Committed by antirez
Browse files

Don't queue commands in an already aborted MULTI state

parent b35fdf1d
......@@ -58,6 +58,13 @@ void queueMultiCommand(client *c) {
multiCmd *mc;
int j;
/* No sense to waste memory if the transaction is already aborted.
* this is useful in case client sends these in a pipeline, or doesn't
* bother to read previous responses and didn't notice the multi was already
* aborted. */
if (c->flags & CLIENT_DIRTY_EXEC)
return;
c->mstate.commands = zrealloc(c->mstate.commands,
sizeof(multiCmd)*(c->mstate.count+1));
mc = c->mstate.commands+c->mstate.count;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment