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

This commit is contained in:
antirez 2014-10-17 10:21:18 +02:00
parent adf55b2337
commit dbc6e9a1ef

View File

@ -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 {