mirror of https://mirror.osredm.com/root/redis.git
fix sentinel test failure (#8983)
fix for recent breakage from #8958, did a mistake when updating the pr.
This commit is contained in:
parent
ae6f58690b
commit
be6ce8a92a
|
@ -3162,12 +3162,12 @@ void sentinelConfigSetCommand(client *c) {
|
||||||
} else if (!strcasecmp(o->ptr, "sentinel-user")) {
|
} else if (!strcasecmp(o->ptr, "sentinel-user")) {
|
||||||
sdsfree(sentinel.sentinel_auth_user);
|
sdsfree(sentinel.sentinel_auth_user);
|
||||||
sentinel.sentinel_auth_user = sdslen(val->ptr) == 0 ?
|
sentinel.sentinel_auth_user = sdslen(val->ptr) == 0 ?
|
||||||
sdsdup(val->ptr) : NULL;
|
NULL : sdsdup(val->ptr);
|
||||||
drop_conns = 1;
|
drop_conns = 1;
|
||||||
} else if (!strcasecmp(o->ptr, "sentinel-pass")) {
|
} else if (!strcasecmp(o->ptr, "sentinel-pass")) {
|
||||||
sdsfree(sentinel.sentinel_auth_pass);
|
sdsfree(sentinel.sentinel_auth_pass);
|
||||||
sentinel.sentinel_auth_pass = sdslen(val->ptr) == 0 ?
|
sentinel.sentinel_auth_pass = sdslen(val->ptr) == 0 ?
|
||||||
sdsdup(val->ptr) : NULL;
|
NULL : sdsdup(val->ptr);
|
||||||
drop_conns = 1;
|
drop_conns = 1;
|
||||||
} else {
|
} else {
|
||||||
addReplyErrorFormat(c, "Invalid argument '%s' to SENTINEL CONFIG SET",
|
addReplyErrorFormat(c, "Invalid argument '%s' to SENTINEL CONFIG SET",
|
||||||
|
|
Loading…
Reference in New Issue