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
4aa701c1
Commit
4aa701c1
authored
Oct 29, 2009
by
antirez
Browse files
Fixed issue 72 (SLAVEOF shutdowns redis-server on malformed reply)
parent
6c9385e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
4aa701c1
...
...
@@ -5071,6 +5071,11 @@ static int syncWithMaster(void) {
strerror
(
errno
));
return
REDIS_ERR
;
}
if
(
buf
[
0
]
!=
'$'
)
{
close
(
fd
);
redisLog
(
REDIS_WARNING
,
"Bad protocol from MASTER, the first byte is not '$', are you sure the host and port are right?"
);
return
REDIS_ERR
;
}
dumpsize
=
atoi
(
buf
+
1
);
redisLog
(
REDIS_NOTICE
,
"Receiving %d bytes data dump from MASTER"
,
dumpsize
);
/* Read the bulk write data on a temp file */
...
...
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