Sentinel command renaming: config rewriting.
This commit is contained in:
parent
60df7dbea1
commit
c303e768bf
@ -1870,6 +1870,18 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
|
|||||||
rewriteConfigRewriteLine(state,"sentinel",line,1);
|
rewriteConfigRewriteLine(state,"sentinel",line,1);
|
||||||
}
|
}
|
||||||
dictReleaseIterator(di2);
|
dictReleaseIterator(di2);
|
||||||
|
|
||||||
|
/* sentinel rename-command */
|
||||||
|
di2 = dictGetIterator(master->renamed_commands);
|
||||||
|
while((de = dictNext(di2)) != NULL) {
|
||||||
|
sds oldname = dictGetKey(de);
|
||||||
|
sds newname = dictGetVal(de);
|
||||||
|
line = sdscatprintf(sdsempty(),
|
||||||
|
"sentinel rename-command %s %s %s",
|
||||||
|
master->name, oldname, newname);
|
||||||
|
rewriteConfigRewriteLine(state,"sentinel",line,1);
|
||||||
|
}
|
||||||
|
dictReleaseIterator(di2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sentinel current-epoch is a global state valid for all the masters. */
|
/* sentinel current-epoch is a global state valid for all the masters. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user