mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
CONFIG SET server.masterauth aesthetic change.
This is just to make the code exactly like the above instance used for requirepass. No actual change nor the original code violated the Redis coding style.
This commit is contained in:
parent
649b304e0f
commit
0d9c1f536b
@ -532,11 +532,7 @@ void configSetCommand(redisClient *c) {
|
|||||||
server.requirepass = ((char*)o->ptr)[0] ? zstrdup(o->ptr) : NULL;
|
server.requirepass = ((char*)o->ptr)[0] ? zstrdup(o->ptr) : NULL;
|
||||||
} else if (!strcasecmp(c->argv[2]->ptr,"masterauth")) {
|
} else if (!strcasecmp(c->argv[2]->ptr,"masterauth")) {
|
||||||
zfree(server.masterauth);
|
zfree(server.masterauth);
|
||||||
if (sdslen(o->ptr)) {
|
server.masterauth = ((char*)o->ptr)[0] ? zstrdup(o->ptr) : NULL;
|
||||||
server.masterauth = zstrdup(o->ptr);
|
|
||||||
} else {
|
|
||||||
server.masterauth = NULL;
|
|
||||||
}
|
|
||||||
} else if (!strcasecmp(c->argv[2]->ptr,"maxmemory")) {
|
} else if (!strcasecmp(c->argv[2]->ptr,"maxmemory")) {
|
||||||
if (getLongLongFromObject(o,&ll) == REDIS_ERR ||
|
if (getLongLongFromObject(o,&ll) == REDIS_ERR ||
|
||||||
ll < 0) goto badfmt;
|
ll < 0) goto badfmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user