mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Diskless replication: don't enter the read-payload branch forever.
This commit is contained in:
parent
f70369335d
commit
80f7f63b64
@ -864,6 +864,9 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
usemark = 1;
|
usemark = 1;
|
||||||
memcpy(eofmark,buf+5,REDIS_RUN_ID_SIZE);
|
memcpy(eofmark,buf+5,REDIS_RUN_ID_SIZE);
|
||||||
memset(lastbytes,0,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,
|
redisLog(REDIS_NOTICE,
|
||||||
"MASTER <-> SLAVE sync: receiving streamed RDB from master");
|
"MASTER <-> SLAVE sync: receiving streamed RDB from master");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user