Commit 54ece2c5 authored by antirez's avatar antirez
Browse files

Remove slave state change handled by replicationSetupSlaveForFullResync().

parent 15de6b10
...@@ -1571,7 +1571,6 @@ int rdbSaveToSlavesSockets(void) { ...@@ -1571,7 +1571,6 @@ int rdbSaveToSlavesSockets(void) {
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) { if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) {
clientids[numfds] = slave->id; clientids[numfds] = slave->id;
fds[numfds++] = slave->fd; fds[numfds++] = slave->fd;
slave->replstate = SLAVE_STATE_WAIT_BGSAVE_END;
replicationSetupSlaveForFullResync(slave,getPsyncInitialOffset()); replicationSetupSlaveForFullResync(slave,getPsyncInitialOffset());
/* Put the socket in non-blocking mode to simplify RDB transfer. /* Put the socket in non-blocking mode to simplify RDB transfer.
* We'll restore it when the children returns (since duped socket * We'll restore it when the children returns (since duped socket
......
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