diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-09-02 12:38:34 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-09-02 12:51:14 +0200 |
commit | 0537e7bf8042cf9954d3b0abab567edf3b5c0516 (patch) | |
tree | 13e2066ae6821a029e95614bc60430bfad4eb1fc /src/multi.c | |
parent | 57b0738011007e47ebe25d5c81acfe333c561e02 (diff) | |
download | redis-0537e7bf8042cf9954d3b0abab567edf3b5c0516.tar.gz |
Use specialized function to add multi bulk reply length
Diffstat (limited to 'src/multi.c')
-rw-r--r-- | src/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multi.c b/src/multi.c index def1dd673..c85516dfe 100644 --- a/src/multi.c +++ b/src/multi.c @@ -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; |