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
09252fc4
Commit
09252fc4
authored
Aug 27, 2010
by
antirez
Browse files
Fixed another instace of the Issue 173
parent
357d3673
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
09252fc4
...
...
@@ -138,7 +138,7 @@ int syncRead(int fd, char *ptr, ssize_t size, int timeout) {
while
(
size
)
{
if
(
aeWait
(
fd
,
AE_READABLE
,
1000
)
&
AE_READABLE
)
{
nread
=
read
(
fd
,
ptr
,
size
);
if
(
nread
=
=
-
1
)
return
-
1
;
if
(
nread
<
=
0
)
return
-
1
;
ptr
+=
nread
;
size
-=
nread
;
totread
+=
nread
;
...
...
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