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
9f0e52a1
Commit
9f0e52a1
authored
Nov 12, 2013
by
antirez
Browse files
Sentinel: receive Pub/Sub messages from slaves.
parent
f7604b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
9f0e52a1
...
@@ -1336,7 +1336,7 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) {
...
@@ -1336,7 +1336,7 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) {
}
}
}
}
/* Pub / Sub */
/* Pub / Sub */
if
((
ri
->
flags
&
SRI_MASTER
)
&&
ri
->
pc
==
NULL
)
{
if ((ri->flags &
(
SRI_MASTER
|SRI_SLAVE)
) && ri->pc == NULL) {
ri->pc = redisAsyncConnect(ri->addr->ip,ri->addr->port);
ri->pc = redisAsyncConnect(ri->addr->ip,ri->addr->port);
if (ri->pc->err) {
if (ri->pc->err) {
sentinelEvent(REDIS_DEBUG,"-pubsub-link-reconnection",ri,"%@ #%s",
sentinelEvent(REDIS_DEBUG,"-pubsub-link-reconnection",ri,"%@ #%s",
...
...
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