summaryrefslogtreecommitdiff
path: root/src/rdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rdb.c')
-rw-r--r--src/rdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rdb.c b/src/rdb.c
index f695f414b..c050664fe 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1421,6 +1421,7 @@ int rdbSaveToSlavesSockets(void) {
clientids[numfds] = slave->id;
fds[numfds++] = slave->fd;
slave->replstate = REDIS_REPL_WAIT_BGSAVE_END;
+ replicationSendFullresyncReply(slave,getPsyncInitialOffset());
/* Put the socket in non-blocking mode to simplify RDB transfer.
* We'll restore it when the children returns (since duped socket
* will share the O_NONBLOCK attribute with the parent). */