mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
RESP3: Use new deferred len API in config.c.
This commit is contained in:
parent
470c28380f
commit
cdd10193c5
@ -1324,7 +1324,7 @@ badfmt: /* Bad format errors */
|
||||
|
||||
void configGetCommand(client *c) {
|
||||
robj *o = c->argv[2];
|
||||
void *replylen = addDeferredMultiBulkLength(c);
|
||||
void *replylen = addReplyDeferredLen(c);
|
||||
char *pattern = o->ptr;
|
||||
char buf[128];
|
||||
int matches = 0;
|
||||
@ -1571,7 +1571,7 @@ void configGetCommand(client *c) {
|
||||
sdsfree(aux);
|
||||
matches++;
|
||||
}
|
||||
setDeferredMultiBulkLength(c,replylen,matches*2);
|
||||
setDeferredMapLen(c,replylen,matches);
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user