Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1d8f302e
Commit
1d8f302e
authored
Mar 15, 2013
by
antirez
Browse files
Cluster: election -> promotion in two comments.
parent
bf821954
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
1d8f302e
...
@@ -612,7 +612,7 @@ void markNodeAsFailingIfNeeded(clusterNode *node) {
...
@@ -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
elec
tion was possible. */
* node, so that no
promo
tion 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) {
...
@@ -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
elec
tion. */
/* TODO: Perform
promo
tion. */
/* TODO: Broadcast update to cluster. */
/* TODO: Broadcast update to cluster. */
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment