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:
parent
3eaa2cdc44
commit
b2e03f8329
@ -593,6 +593,7 @@ int startBgsaveForReplication(int mincapa) {
|
|||||||
client *slave = ln->value;
|
client *slave = ln->value;
|
||||||
|
|
||||||
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) {
|
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) {
|
||||||
|
slave->replstate = REPL_STATE_NONE;
|
||||||
slave->flags &= ~CLIENT_SLAVE;
|
slave->flags &= ~CLIENT_SLAVE;
|
||||||
listDelNode(server.slaves,ln);
|
listDelNode(server.slaves,ln);
|
||||||
addReplyError(slave,
|
addReplyError(slave,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user