mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 19:12:14 +00:00
No-sync: avoid master to be marked as PRE-PSYNC.
replicationCreateMasterClient() will mark it as such if we don't set a fake initial replication offset.
This commit is contained in:
parent
abbfbcf161
commit
de6f74838a
@ -1219,6 +1219,7 @@ int slaveTryPartialResynchronization(int fd) {
|
|||||||
/* No-sync replication. */
|
/* No-sync replication. */
|
||||||
redisLog(REDIS_NOTICE, "No-sync slave accepted without SYNC phase.");
|
redisLog(REDIS_NOTICE, "No-sync slave accepted without SYNC phase.");
|
||||||
sdsfree(reply);
|
sdsfree(reply);
|
||||||
|
server.repl_master_initial_offset = 0;
|
||||||
replicationCreateMasterClient(fd);
|
replicationCreateMasterClient(fd);
|
||||||
return PSYNC_CONTINUE;
|
return PSYNC_CONTINUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user