mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 16:21:03 +00:00
Sentinel: fixed a crash on script execution.
The call to sentinelScheduleScriptExecution() lacked the final NULL argument to signal the end of arguments. This resulted into a crash.
This commit is contained in:
parent
724371d748
commit
01477753e6
@ -789,7 +789,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha
|
|||||||
sentinelScheduleScriptExecution(master->client_reconfig_script,
|
sentinelScheduleScriptExecution(master->client_reconfig_script,
|
||||||
master->name,
|
master->name,
|
||||||
(role == SENTINEL_LEADER) ? "leader" : "observer",
|
(role == SENTINEL_LEADER) ? "leader" : "observer",
|
||||||
state, from->ip, fromport, to->ip, toport);
|
state, from->ip, fromport, to->ip, toport, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========================== sentinelRedisInstance ========================= */
|
/* ========================== sentinelRedisInstance ========================= */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user