Remove slave state change handled by replicationSetupSlaveForFullResync().

This commit is contained in:
antirez 2015-08-05 13:58:56 +02:00
parent 15de6b108b
commit 54ece2c583

View File

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