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:
antirez 2015-02-04 11:39:02 +01:00
parent abbfbcf161
commit de6f74838a

View File

@ -1219,6 +1219,7 @@ int slaveTryPartialResynchronization(int fd) {
/* No-sync replication. */
redisLog(REDIS_NOTICE, "No-sync slave accepted without SYNC phase.");
sdsfree(reply);
server.repl_master_initial_offset = 0;
replicationCreateMasterClient(fd);
return PSYNC_CONTINUE;
}