mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 18:51:20 +00:00
Use specialized function to add multi bulk reply length
This commit is contained in:
@ -79,7 +79,7 @@ void getsetCommand(redisClient *c) {
|
||||
void mgetCommand(redisClient *c) {
|
||||
int j;
|
||||
|
||||
addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",c->argc-1));
|
||||
addReplyMultiBulkLen(c,c->argc-1);
|
||||
for (j = 1; j < c->argc; j++) {
|
||||
robj *o = lookupKeyRead(c->db,c->argv[j]);
|
||||
if (o == NULL) {
|
||||
|
Reference in New Issue
Block a user