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
fe640e58
Unverified
Commit
fe640e58
authored
May 21, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
May 21, 2020
Browse files
Merge pull request #7300 from ShooterIT/comment
Replace 'addDeferredMultiBulkLength' with 'addReplyDeferredLen' in comment
parents
e387f5ba
86f0e873
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
fe640e58
...
...
@@ -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