Commit de6f7483 authored by antirez's avatar antirez
Browse files

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.
parent abbfbcf1
...@@ -1219,6 +1219,7 @@ int slaveTryPartialResynchronization(int fd) { ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment