mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Log the unexpected string received in place of the SYNC payload length.
This commit is contained in:
parent
41d64a7516
commit
da315d3325
@ -722,7 +722,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
server.repl_transfer_lastio = server.unixtime;
|
server.repl_transfer_lastio = server.unixtime;
|
||||||
return;
|
return;
|
||||||
} else if (buf[0] != '$') {
|
} 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;
|
goto error;
|
||||||
}
|
}
|
||||||
server.repl_transfer_size = strtol(buf+1,NULL,10);
|
server.repl_transfer_size = strtol(buf+1,NULL,10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user