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
b8a94463
Commit
b8a94463
authored
Nov 19, 2013
by
antirez
Browse files
Sentinel: rewriteConfigSentinelOption() sub-iterators var typo fixed.
parent
16237d78
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
b8a94463
...
...
@@ -1417,7 +1417,7 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
/* sentinel known-slave */
di2 = dictGetIterator(master->slaves);
while
((
de
=
dictNext
(
di
))
!=
NULL
)
{
while((de = dictNext(di
2
)) != NULL) {
sentinelAddr *slave_addr;
ri = dictGetVal(de);
...
...
@@ -1439,7 +1439,7 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
/* sentinel known-sentinel */
di2 = dictGetIterator(master->sentinels);
while
((
de
=
dictNext
(
di
))
!=
NULL
)
{
while((de = dictNext(di
2
)) != NULL) {
ri = dictGetVal(de);
line = sdscatprintf(sdsempty(),
"sentinel known-sentinel %s %s %d",
...
...
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