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
1569af1f
Commit
1569af1f
authored
Nov 12, 2013
by
antirez
Browse files
Sentinel: receive Pub/Sub messages from slaves.
parent
dfa5f8b7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
1569af1f
...
@@ -1334,7 +1334,7 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) {
...
@@ -1334,7 +1334,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