Merge pull request #7300 from ShooterIT/comment

Replace 'addDeferredMultiBulkLength' with 'addReplyDeferredLen' in comment
This commit is contained in:
Salvatore Sanfilippo 2020-05-21 15:53:01 +02:00 committed by GitHub
commit fe640e5858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ void _addReplyProtoToList(client *c, const char *s, size_t len) {
clientReplyBlock *tail = ln? listNodeValue(ln): NULL; clientReplyBlock *tail = ln? listNodeValue(ln): NULL;
/* Note that 'tail' may be NULL even if we have a tail node, becuase when /* Note that 'tail' may be NULL even if we have a tail node, becuase when
* addDeferredMultiBulkLength() is used, it sets a dummy node to NULL just * addReplyDeferredLen() is used, it sets a dummy node to NULL just
* fo fill it later, when the size of the bulk length is set. */ * fo fill it later, when the size of the bulk length is set. */
/* Append to tail string when possible. */ /* Append to tail string when possible. */
@ -473,7 +473,7 @@ void trimReplyUnusedTailSpace(client *c) {
clientReplyBlock *tail = ln? listNodeValue(ln): NULL; clientReplyBlock *tail = ln? listNodeValue(ln): NULL;
/* Note that 'tail' may be NULL even if we have a tail node, becuase when /* Note that 'tail' may be NULL even if we have a tail node, becuase when
* addDeferredMultiBulkLength() is used */ * addReplyDeferredLen() is used */
if (!tail) return; if (!tail) return;
/* We only try to trim the space is relatively high (more than a 1/4 of the /* We only try to trim the space is relatively high (more than a 1/4 of the