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
86a540a6
Commit
86a540a6
authored
Nov 26, 2013
by
huangz1990
Browse files
fix a bug in sentinel.c about pub/sub link
parent
6f4fd557
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
86a540a6
...
...
@@ -1607,9 +1607,8 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) {
}
}
/* Clear the DISCONNECTED flags only if we have both the connections
* (or just the commands connection if this is a slave or a
* sentinel instance). */
if
(
ri
->
cc
&&
(
ri
->
flags
&
(
SRI_SLAVE
|
SRI_SENTINEL
)
||
ri
->
pc
))
* (or just the commands connection if this is a sentinel instance). */
if
(
ri
->
cc
&&
(
ri
->
flags
&
SRI_SENTINEL
||
ri
->
pc
))
ri
->
flags
&=
~
SRI_DISCONNECTED
;
}
...
...
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