提交 8c4d91fc 编写于 作者: A antirez

replication slave timeout when receiving the initial bulk data set to 3600...

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
上级 2abee6f2
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册