mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Sentinel: fix type specifier for Hello msg generation.
This fixes issue #1395.
This commit is contained in:
parent
fcebd9b0f9
commit
8d547ebd56
@ -2078,12 +2078,12 @@ int sentinelSendHello(sentinelRedisInstance *ri) {
|
|||||||
/* Format and send the Hello message. */
|
/* Format and send the Hello message. */
|
||||||
snprintf(payload,sizeof(payload),
|
snprintf(payload,sizeof(payload),
|
||||||
"%s,%d,%s,%llu," /* Info about this sentinel. */
|
"%s,%d,%s,%llu," /* Info about this sentinel. */
|
||||||
"%s,%s,%d,%lld", /* Info about current master. */
|
"%s,%s,%d,%llu", /* Info about current master. */
|
||||||
ip, server.port, server.runid,
|
ip, server.port, server.runid,
|
||||||
(unsigned long long) sentinel.current_epoch,
|
(unsigned long long) sentinel.current_epoch,
|
||||||
/* --- */
|
/* --- */
|
||||||
master->name,master_addr->ip,master_addr->port,
|
master->name,master_addr->ip,master_addr->port,
|
||||||
master->config_epoch);
|
(unsigned long long) master->config_epoch);
|
||||||
retval = redisAsyncCommand(ri->cc,
|
retval = redisAsyncCommand(ri->cc,
|
||||||
sentinelPublishReplyCallback, NULL, "PUBLISH %s %s",
|
sentinelPublishReplyCallback, NULL, "PUBLISH %s %s",
|
||||||
SENTINEL_HELLO_CHANNEL,payload);
|
SENTINEL_HELLO_CHANNEL,payload);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user