Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
49128f0b
Commit
49128f0b
authored
Sep 02, 2010
by
Pieter Noordhuis
Browse files
Fix bug in gluing a deferred multi bulk length to the next reply chunk
parent
3ab20376
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
49128f0b
...
...
@@ -253,9 +253,9 @@ void setDeferredMultiBulkLength(redisClient *c, void *node, long length) {
if
(
ln
->
next
!=
NULL
)
{
next
=
listNodeValue
(
ln
->
next
);
/* Only glue when the next node is
an sds
*/
/* Only glue when the next node is
non-NULL (an sds in this case)
*/
if
(
next
->
ptr
!=
NULL
)
{
len
->
ptr
=
sdscat
(
len
->
ptr
,
next
->
ptr
);
len
->
ptr
=
sdscat
len
(
len
->
ptr
,
next
->
ptr
,
sdslen
(
next
->
ptr
)
);
listDelNode
(
c
->
reply
,
ln
->
next
);
}
}
...
...
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