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
906c4d77
Commit
906c4d77
authored
Mar 24, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #1617 from mattsta/remove-unused-warning
Cluster: remove variable causing warning
parents
8e6625e6
67ed5f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
906c4d77
...
@@ -2152,14 +2152,12 @@ cleanup:
...
@@ -2152,14 +2152,12 @@ cleanup:
/* This is our Pub/Sub callback for the Hello channel. It's useful in order
/* This is our Pub/Sub callback for the Hello channel. It's useful in order
* to discover other sentinels attached at the same master. */
* to discover other sentinels attached at the same master. */
void
sentinelReceiveHelloMessages
(
redisAsyncContext
*
c
,
void
*
reply
,
void
*
privdata
)
{
void
sentinelReceiveHelloMessages
(
redisAsyncContext
*
c
,
void
*
reply
,
void
*
privdata
)
{
sentinelRedisInstance
*
ri
=
c
->
data
,
*
master
;
sentinelRedisInstance
*
ri
=
c
->
data
;
redisReply
*
r
;
redisReply
*
r
;
if
(
!
reply
||
!
ri
)
return
;
if
(
!
reply
||
!
ri
)
return
;
r
=
reply
;
r
=
reply
;
master
=
(
ri
->
flags
&
SRI_MASTER
)
?
ri
:
ri
->
master
;
/* Update the last activity in the pubsub channel. Note that since we
/* Update the last activity in the pubsub channel. Note that since we
* receive our messages as well this timestamp can be used to detect
* receive our messages as well this timestamp can be used to detect
* if the link is probably disconnected even if it seems otherwise. */
* if the link is probably disconnected even if it seems otherwise. */
...
...
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