From d2402022610e25fd6c330e1d9ecb81c5667b4f76 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 25 Nov 2013 10:24:34 +0100 Subject: [PATCH] Sentinel: fix type specifier for Hello msg generation. This fixes issue #1395. --- src/sentinel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index 44c5fedc..9ae76859 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2080,12 +2080,12 @@ int sentinelSendHello(sentinelRedisInstance *ri) { /* Format and send the Hello message. */ snprintf(payload,sizeof(payload), "%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, (unsigned long long) sentinel.current_epoch, /* --- */ master->name,master_addr->ip,master_addr->port, - master->config_epoch); + (unsigned long long) master->config_epoch); retval = redisAsyncCommand(ri->cc, sentinelPublishReplyCallback, NULL, "PUBLISH %s %s", SENTINEL_HELLO_CHANNEL,payload);