From cdd10193c5bcd85eabf6924d57e1d5357c670d03 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 8 Nov 2018 17:54:50 +0100 Subject: [PATCH] RESP3: Use new deferred len API in config.c. --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 9f51bba8..7e6d9233 100644 --- a/src/config.c +++ b/src/config.c @@ -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); } /*-----------------------------------------------------------------------------