mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Fix Sentinel configuration rewrite. (#8480)
The `resolve-hostnames` and `announce-hostnames` parameters were not
specified correctly according to the new convention introduced by
1aad55b66
.
This commit is contained in:
parent
b5ca1e9e53
commit
29ac9aea5d
@ -2077,13 +2077,13 @@ void rewriteConfigSentinelOption(struct rewriteConfigState *state) {
|
|||||||
*/
|
*/
|
||||||
line = sdscatprintf(sdsempty(), "sentinel resolve-hostnames %s",
|
line = sdscatprintf(sdsempty(), "sentinel resolve-hostnames %s",
|
||||||
sentinel.resolve_hostnames ? "yes" : "no");
|
sentinel.resolve_hostnames ? "yes" : "no");
|
||||||
rewriteConfigRewriteLine(state,"sentinel",line,
|
rewriteConfigRewriteLine(state,"sentinel resolve-hostnames",line,
|
||||||
sentinel.resolve_hostnames != SENTINEL_DEFAULT_RESOLVE_HOSTNAMES);
|
sentinel.resolve_hostnames != SENTINEL_DEFAULT_RESOLVE_HOSTNAMES);
|
||||||
|
|
||||||
/* sentinel announce-hostnames. */
|
/* sentinel announce-hostnames. */
|
||||||
line = sdscatprintf(sdsempty(), "sentinel announce-hostnames %s",
|
line = sdscatprintf(sdsempty(), "sentinel announce-hostnames %s",
|
||||||
sentinel.announce_hostnames ? "yes" : "no");
|
sentinel.announce_hostnames ? "yes" : "no");
|
||||||
rewriteConfigRewriteLine(state,"sentinel",line,
|
rewriteConfigRewriteLine(state,"sentinel announce-hostnames",line,
|
||||||
sentinel.announce_hostnames != SENTINEL_DEFAULT_ANNOUNCE_HOSTNAMES);
|
sentinel.announce_hostnames != SENTINEL_DEFAULT_ANNOUNCE_HOSTNAMES);
|
||||||
|
|
||||||
/* For every master emit a "sentinel monitor" config entry. */
|
/* For every master emit a "sentinel monitor" config entry. */
|
||||||
|
Loading…
Reference in New Issue
Block a user