提交 dbc6e9a1 编写于 作者: A antirez

Diskless replication: don't enter the read-payload branch forever.

上级 adf55b23
......@@ -858,6 +858,9 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
usemark = 1;
memcpy(eofmark,buf+5,REDIS_RUN_ID_SIZE);
memset(lastbytes,0,REDIS_RUN_ID_SIZE);
/* Set any repl_transfer_size to avoid entering this code path
* at the next call. */
server.repl_transfer_size = 0;
redisLog(REDIS_NOTICE,
"MASTER <-> SLAVE sync: receiving streamed RDB from master");
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册