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
4c26a79a
Commit
4c26a79a
authored
Mar 24, 2009
by
antirez
Browse files
redis-benchmark sync with the new protocol
parent
0c9ca0e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmark.c
View file @
4c26a79a
...
...
@@ -190,11 +190,11 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask)
if
(
c
->
replytype
==
REPLY_BULK
)
{
*
p
=
'\0'
;
*
(
p
-
1
)
=
'\0'
;
if
(
memcmp
(
c
->
ibuf
,
"nil"
,
3
)
==
0
)
{
c
->
readlen
=
atoi
(
c
->
ibuf
+
1
)
+
2
;
if
(
c
->
readlen
==
-
1
)
{
clientDone
(
c
);
return
;
}
c
->
readlen
=
atoi
(
c
->
ibuf
)
+
2
;
c
->
ibuf
=
sdsrange
(
c
->
ibuf
,(
p
-
c
->
ibuf
)
+
1
,
-
1
);
}
else
{
c
->
ibuf
=
sdstrim
(
c
->
ibuf
,
"
\r\n
"
);
...
...
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