diskless replication - notify slave when rdb transfer failed

in diskless replication - master was not notifing the slave that rdb transfer
terminated on error, and lets slave wait for replication timeout
This commit is contained in:
Oran Agra
2019-05-13 16:34:59 +02:00
committed by antirez
parent 7e350b0931
commit 3b207b894a
+1
View File
@@ -593,6 +593,7 @@ int startBgsaveForReplication(int mincapa) {
client *slave = ln->value;
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) {
slave->replstate = REPL_STATE_NONE;
slave->flags &= ~CLIENT_SLAVE;
listDelNode(server.slaves,ln);
addReplyError(slave,