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
c874e39c
Commit
c874e39c
authored
Nov 06, 2013
by
antirez
Browse files
Sentinel: sentinelSendSlaveOf() was missing a var and the prototype.
parent
17679987
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
c874e39c
...
...
@@ -329,6 +329,7 @@ sentinelRedisInstance *sentinelSelectSlave(sentinelRedisInstance *master);
void
sentinelScheduleScriptExecution
(
char
*
path
,
...);
void
sentinelStartFailover
(
sentinelRedisInstance
*
master
,
int
state
);
void
sentinelDiscardReplyCallback
(
redisAsyncContext
*
c
,
void
*
reply
,
void
*
privdata
);
int
sentinelSendSlaveOf
(
sentinelRedisInstance
*
ri
,
char
*
host
,
int
port
);
/* ========================= Dictionary types =============================== */
...
...
@@ -2537,6 +2538,7 @@ char *sentinelGetObjectiveLeader(sentinelRedisInstance *master) {
* discarded. */
int
sentinelSendSlaveOf
(
sentinelRedisInstance
*
ri
,
char
*
host
,
int
port
)
{
char
portstr
[
32
];
int
retval
;
ll2string
(
portstr
,
sizeof
(
portstr
),
port
);
...
...
@@ -2901,7 +2903,6 @@ void sentinelFailoverReconfNextSlave(sentinelRedisInstance *master) {
{
sentinelRedisInstance
*
slave
=
dictGetVal
(
de
);
int
retval
;
char
master_port
[
32
];
/* Skip the promoted slave, and already configured slaves. */
if
(
slave
->
flags
&
(
SRI_PROMOTED
|
SRI_RECONF_DONE
))
continue
;
...
...
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