Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8d547ebd
Commit
8d547ebd
authored
Nov 25, 2013
by
antirez
Browse files
Sentinel: fix type specifier for Hello msg generation.
This fixes issue #1395.
parent
fcebd9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
8d547ebd
...
@@ -2078,12 +2078,12 @@ int sentinelSendHello(sentinelRedisInstance *ri) {
...
@@ -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,%ll
d
", /* Info about current master. */
"%s,%s,%d,%ll
u
", /* 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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment