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
86f0e873
Commit
86f0e873
authored
May 21, 2020
by
ShooterIT
Browse files
Replace addDeferredMultiBulkLength with addReplyDeferredLen in comment
parent
af342456
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
86f0e873
...
...
@@ -268,7 +268,7 @@ void _addReplyProtoToList(client *c, const char *s, size_t len) {
clientReplyBlock
*
tail
=
ln
?
listNodeValue
(
ln
)
:
NULL
;
/* 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. */
/* Append to tail string when possible. */
...
...
@@ -473,7 +473,7 @@ void trimReplyUnusedTailSpace(client *c) {
clientReplyBlock
*
tail
=
ln
?
listNodeValue
(
ln
)
:
NULL
;
/* 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
;
/* 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