Commit 3e1fc627 authored by antirez's avatar antirez
Browse files

Sentinel: rewriteConfigSentinelOption() sub-iterators var typo fixed.

parent 9a9c0cfa
......@@ -1419,7 +1419,7 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
/* sentinel known-slave */
di2 = dictGetIterator(master->slaves);
while((de = dictNext(di)) != NULL) {
while((de = dictNext(di2)) != NULL) {
sentinelAddr *slave_addr;
ri = dictGetVal(de);
......@@ -1441,7 +1441,7 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
/* sentinel known-sentinel */
di2 = dictGetIterator(master->sentinels);
while((de = dictNext(di)) != NULL) {
while((de = dictNext(di2)) != NULL) {
ri = dictGetVal(de);
line = sdscatprintf(sdsempty(),
"sentinel known-sentinel %s %s %d",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment