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
c6cd1e59
Unverified
Commit
c6cd1e59
authored
Apr 14, 2021
by
Huang Zhw
Committed by
GitHub
Apr 13, 2021
Browse files
Remove extra param in role-change event of sentinelEvent. (#8742)
parent
4938052f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
c6cd1e59
...
@@ -2652,8 +2652,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
...
@@ -2652,8 +2652,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
((
ri
->
flags
&
(
SRI_MASTER
|
SRI_SLAVE
))
==
role
)
?
((
ri
->
flags
&
(
SRI_MASTER
|
SRI_SLAVE
))
==
role
)
?
"+role-change"
:
"-role-change"
,
"+role-change"
:
"-role-change"
,
ri
,
"%@ new reported role is %s"
,
ri
,
"%@ new reported role is %s"
,
role
==
SRI_MASTER
?
"master"
:
"slave"
,
role
==
SRI_MASTER
?
"master"
:
"slave"
);
ri
->
flags
&
SRI_MASTER
?
"master"
:
"slave"
);
}
}
/* None of the following conditions are processed when in tilt mode, so
/* None of the following conditions are processed when in tilt mode, so
...
...
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