mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04: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:
@@ -789,7 +789,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha
|
||||
sentinelScheduleScriptExecution(master->client_reconfig_script,
|
||||
master->name,
|
||||
(role == SENTINEL_LEADER) ? "leader" : "observer",
|
||||
state, from->ip, fromport, to->ip, toport);
|
||||
state, from->ip, fromport, to->ip, toport, NULL);
|
||||
}
|
||||
|
||||
/* ========================== sentinelRedisInstance ========================= */
|
||||
|
||||
Reference in New Issue
Block a user