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
ca908473
Commit
ca908473
authored
Nov 04, 2011
by
antirez
Browse files
A comment moved a few lines for clarity.
parent
94d490b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
ca908473
...
@@ -789,10 +789,10 @@ int processMultibulkBuffer(redisClient *c) {
...
@@ -789,10 +789,10 @@ int processMultibulkBuffer(redisClient *c) {
/* Not enough data (+2 == trailing \r\n) */
/* Not enough data (+2 == trailing \r\n) */
break
;
break
;
}
else
{
}
else
{
#ifdef REDIS_MBULK_BIG_ARG
/* Optimization: if the buffer contanins JUST our bulk element
/* Optimization: if the buffer contanins JUST our bulk element
* instead of creating a new object by *copying* the sds we
* instead of creating a new object by *copying* the sds we
* just use the current sds string. */
* just use the current sds string. */
#ifdef REDIS_MBULK_BIG_ARG
if
(
pos
==
0
&&
if
(
pos
==
0
&&
c
->
bulklen
>=
REDIS_MBULK_BIG_ARG
&&
c
->
bulklen
>=
REDIS_MBULK_BIG_ARG
&&
(
signed
)
sdslen
(
c
->
querybuf
)
==
c
->
bulklen
+
2
)
(
signed
)
sdslen
(
c
->
querybuf
)
==
c
->
bulklen
+
2
)
...
...
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