mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Sentinel: sentinelSendSlaveOf() was missing a var and the prototype.
This commit is contained in:
parent
23800d9e49
commit
80da056c29
@ -327,6 +327,7 @@ sentinelRedisInstance *sentinelSelectSlave(sentinelRedisInstance *master);
|
|||||||
void sentinelScheduleScriptExecution(char *path, ...);
|
void sentinelScheduleScriptExecution(char *path, ...);
|
||||||
void sentinelStartFailover(sentinelRedisInstance *master, int state);
|
void sentinelStartFailover(sentinelRedisInstance *master, int state);
|
||||||
void sentinelDiscardReplyCallback(redisAsyncContext *c, void *reply, void *privdata);
|
void sentinelDiscardReplyCallback(redisAsyncContext *c, void *reply, void *privdata);
|
||||||
|
int sentinelSendSlaveOf(sentinelRedisInstance *ri, char *host, int port);
|
||||||
|
|
||||||
/* ========================= Dictionary types =============================== */
|
/* ========================= Dictionary types =============================== */
|
||||||
|
|
||||||
@ -2535,6 +2536,7 @@ char *sentinelGetObjectiveLeader(sentinelRedisInstance *master) {
|
|||||||
* discarded. */
|
* discarded. */
|
||||||
int sentinelSendSlaveOf(sentinelRedisInstance *ri, char *host, int port) {
|
int sentinelSendSlaveOf(sentinelRedisInstance *ri, char *host, int port) {
|
||||||
char portstr[32];
|
char portstr[32];
|
||||||
|
int retval;
|
||||||
|
|
||||||
ll2string(portstr,sizeof(portstr),port);
|
ll2string(portstr,sizeof(portstr),port);
|
||||||
|
|
||||||
@ -2899,7 +2901,6 @@ void sentinelFailoverReconfNextSlave(sentinelRedisInstance *master) {
|
|||||||
{
|
{
|
||||||
sentinelRedisInstance *slave = dictGetVal(de);
|
sentinelRedisInstance *slave = dictGetVal(de);
|
||||||
int retval;
|
int retval;
|
||||||
char master_port[32];
|
|
||||||
|
|
||||||
/* Skip the promoted slave, and already configured slaves. */
|
/* Skip the promoted slave, and already configured slaves. */
|
||||||
if (slave->flags & (SRI_PROMOTED|SRI_RECONF_DONE)) continue;
|
if (slave->flags & (SRI_PROMOTED|SRI_RECONF_DONE)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user