mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Cluster: election -> promotion in two comments.
This commit is contained in:
parent
bf82195467
commit
1d8f302e0d
@ -612,7 +612,7 @@ void markNodeAsFailingIfNeeded(clusterNode *node) {
|
|||||||
* state.
|
* state.
|
||||||
*
|
*
|
||||||
* Currently we only revert the FAIL state if there are no slaves for this
|
* Currently we only revert the FAIL state if there are no slaves for this
|
||||||
* node, so that no election was possible. */
|
* node, so that no promotion was possible. */
|
||||||
void clearNodeFailureIfNeeded(clusterNode *node) {
|
void clearNodeFailureIfNeeded(clusterNode *node) {
|
||||||
int changes = 0;
|
int changes = 0;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
@ -1390,7 +1390,7 @@ void clusterHandleSlaveFailover(void) {
|
|||||||
if (server.cluster->failover_auth_count >= needed_quorum) {
|
if (server.cluster->failover_auth_count >= needed_quorum) {
|
||||||
redisLog(REDIS_WARNING,
|
redisLog(REDIS_WARNING,
|
||||||
"Masters quorum reached: failing over my (failing) master.");
|
"Masters quorum reached: failing over my (failing) master.");
|
||||||
/* TODO: Perform election. */
|
/* TODO: Perform promotion. */
|
||||||
/* TODO: Broadcast update to cluster. */
|
/* TODO: Broadcast update to cluster. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user