Cluster: election -> promotion in two comments.

This commit is contained in:
antirez 2013-03-15 15:44:49 +01:00
parent bf82195467
commit 1d8f302e0d

View File

@ -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. */
} }
} }