Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7a35eec5
Commit
7a35eec5
authored
May 21, 2020
by
ShooterIT
Committed by
antirez
May 22, 2020
Browse files
Replace addDeferredMultiBulkLength with addReplyDeferredLen in comment
parent
f93e1417
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
7a35eec5
...
@@ -268,7 +268,7 @@ void _addReplyProtoToList(client *c, const char *s, size_t len) {
...
@@ -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
* addDeferred
MultiBulkLength
() is used, it sets a dummy node to NULL just
* add
Reply
Deferred
Len
() 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) {
...
@@ -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
* addDeferred
MultiBulkLength
() is used */
* add
Reply
Deferred
Len
() 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment