mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Refresh good slaves count when setting slave state as online.
This commit is contained in:
parent
d64d2e21c9
commit
1a54d5963e
@ -441,6 +441,7 @@ int masterTryPartialResynchronization(redisClient *c) {
|
||||
* to -1 to force the master to emit SELECT, since the slave already
|
||||
* has this state from the previous connection with the master. */
|
||||
|
||||
refreshGoodSlavesCount();
|
||||
return REDIS_OK; /* The caller can return, no full resync needed. */
|
||||
|
||||
need_full_resync:
|
||||
@ -662,6 +663,7 @@ void sendBulkToSlave(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||
freeClient(slave);
|
||||
return;
|
||||
}
|
||||
refreshGoodSlavesCount();
|
||||
redisLog(REDIS_NOTICE,"Synchronization with slave succeeded");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user