]> git.saurik.com Git - redis.git/blobdiff - src/multi.c
Use specialized function to add multi bulk reply length
[redis.git] / src / multi.c
index def1dd67326b546d4e96a7c88ee7ebf53fc06a51..c85516dfe37ef7f3cb4f598688329d2f1c47eabb 100644 (file)
@@ -107,7 +107,7 @@ void execCommand(redisClient *c) {
     unwatchAllKeys(c); /* Unwatch ASAP otherwise we'll waste CPU cycles */
     orig_argv = c->argv;
     orig_argc = c->argc;
-    addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",c->mstate.count));
+    addReplyMultiBulkLen(c,c->mstate.count);
     for (j = 0; j < c->mstate.count; j++) {
         c->argc = c->mstate.commands[j].argc;
         c->argv = c->mstate.commands[j].argv;