Closed GoogleCodeExporter closed 8 years ago
I analyzed this a little bit.
What happens is that the slave assumes that the response of a "SYNC\r\n"
request to
the master is not malformed. The 2nd byte is assumed to be the response length,
the
rest of which is then dumped straight to disk, and then read again through
rdbLoad().
If the master response is "HTTP/1.0 400 Bad Request" (giving an expected
response
lenght of atoi(buf+1) == 0) which is then dumped to disk, resulting in an empty
file.
Original comment by arnim...@gmail.com
on 13 Oct 2009 at 11:35
Original comment by anti...@gmail.com
on 23 Oct 2009 at 12:44
Fixed & Verified
Original comment by anti...@gmail.com
on 29 Oct 2009 at 10:38
Original comment by anti...@gmail.com
on 29 Oct 2009 at 10:38
Original issue reported on code.google.com by
arnim...@gmail.com
on 12 Oct 2009 at 4:28