diff options
author | antirez <antirez@gmail.com> | 2016-11-10 12:35:29 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-11-10 12:35:29 +0100 |
commit | 28c96d73b2e157a37465560bc421280d17005708 (patch) | |
tree | 0843c6a1f22c38815eff7ab0638999ad8f5789a2 /src/replication.c | |
parent | 4e5e366ed265f2571124edfa9c2f9eaa0d450c45 (diff) | |
download | redis-psync2.tar.gz |
PSYNC2: Save replication ID/offset on RDB file.psync2
This means that stopping a slave and restarting it will still make it
able to PSYNC with the master. Moreover the master itself will retain
its ID/offset, in case it gets turned into a slave, or if a slave will
try to PSYNC with it with an exactly updated offset (otherwise there is
no backlog).
This change was possible thanks to PSYNC v2 that makes saving the current
replication state much simpler.
Diffstat (limited to 'src/replication.c')
-rw-r--r-- | src/replication.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c index 1962b3a42..1a9b2e574 100644 --- a/src/replication.c +++ b/src/replication.c @@ -39,7 +39,6 @@ void replicationDiscardCachedMaster(void); void replicationResurrectCachedMaster(int newfd); -void replicationCacheMasterUsingMyself(void); void replicationSendAck(void); void putSlaveOnline(client *slave); int cancelReplicationHandshake(void); |