replication slave timeout when receiving the initial bulk data set to 3600 seconds, now that replication is non-blocking the server must save the db before to start the async replication and this can take a lot of time with huge datasets

This commit is contained in:
antirez 2009-05-22 20:55:09 +02:00
parent 2abee6f215
commit 8c4d91fcf8

View File

@ -3862,7 +3862,7 @@ static int syncWithMaster(void) {
return REDIS_ERR;
}
/* Read the bulk write count */
if (syncReadLine(fd,buf,1024,5) == -1) {
if (syncReadLine(fd,buf,1024,3600) == -1) {
close(fd);
redisLog(REDIS_WARNING,"I/O error reading bulk count from MASTER: %s",
strerror(errno));