mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 21:11:33 +00:00
Allow CONFIG GET during loading.
Thanks to @oranagra for the idea of allowing CONFIG GET during loading.
This commit is contained in:
@ -1855,6 +1855,12 @@ int rewriteConfig(char *path) {
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
void configCommand(client *c) {
|
||||
/* Only allow CONFIG GET while loading. */
|
||||
if (server.loading && strcasecmp(c->argv[1]->ptr,"get")) {
|
||||
addReplyError(c,"Only CONFIG GET is allowed during loading");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strcasecmp(c->argv[1]->ptr,"set")) {
|
||||
if (c->argc != 4) goto badarity;
|
||||
configSetCommand(c);
|
||||
|
Reference in New Issue
Block a user