mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
Use specialized function to add multi bulk reply length
This commit is contained in:
@ -315,7 +315,7 @@ void hmgetCommand(redisClient *c) {
|
||||
/* Note the check for o != NULL happens inside the loop. This is
|
||||
* done because objects that cannot be found are considered to be
|
||||
* an empty hash. The reply should then be a series of NULLs. */
|
||||
addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",c->argc-2));
|
||||
addReplyMultiBulkLen(c,c->argc-2);
|
||||
for (i = 2; i < c->argc; i++) {
|
||||
if (o != NULL && (value = hashTypeGet(o,c->argv[i])) != NULL) {
|
||||
addReplyBulk(c,value);
|
||||
|
Reference in New Issue
Block a user