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