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
6726ea5b
Commit
6726ea5b
authored
Feb 01, 2013
by
antirez
Browse files
Log the unexpected string received in place of the SYNC payload length.
parent
f5edd535
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
6726ea5b
...
...
@@ -722,7 +722,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
server
.
repl_transfer_lastio
=
server
.
unixtime
;
return
;
}
else
if
(
buf
[
0
]
!=
'$'
)
{
redisLog
(
REDIS_WARNING
,
"Bad protocol from MASTER, the first byte is not '$', are you sure the host and port are right?"
);
redisLog
(
REDIS_WARNING
,
"Bad protocol from MASTER, the first byte is not '$'
(we received '%s')
, are you sure the host and port are right?"
,
buf
);
goto
error
;
}
server
.
repl_transfer_size
=
strtol
(
buf
+
1
,
NULL
,
10
);
...
...
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