mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 09:41:21 +00:00
Add addReplyBulkSds() function
Refactor a common pattern into one function so we don't end up with copy/paste programming.
This commit is contained in:
@ -2908,10 +2908,7 @@ void sentinelInfoCommand(redisClient *c) {
|
||||
dictReleaseIterator(di);
|
||||
}
|
||||
|
||||
addReplySds(c,sdscatprintf(sdsempty(),"$%lu\r\n",
|
||||
(unsigned long)sdslen(info)));
|
||||
addReplySds(c,info);
|
||||
addReply(c,shared.crlf);
|
||||
addReplyBulkSds(c, info);
|
||||
}
|
||||
|
||||
/* Implements Sentinel verison of the ROLE command. The output is
|
||||
|
Reference in New Issue
Block a user