From 1f5e7b88637900005bbcee3304915075dd21673d Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 8 Mar 2015 15:33:42 +0100 Subject: [PATCH] Config: activerehashing option support in CONFIG SET. --- src/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config.c b/src/config.c index 1ce7febf..38e9dcf5 100644 --- a/src/config.c +++ b/src/config.c @@ -737,6 +737,11 @@ void configSetCommand(redisClient *c) { if (yn == -1) goto badfmt; server.repl_slave_ro = yn; + } else if (!strcasecmp(c->argv[2]->ptr,"activerehashing")) { + int yn = yesnotoi(o->ptr); + + if (yn == -1) goto badfmt; + server.activerehashing = yn; } else if (!strcasecmp(c->argv[2]->ptr,"dir")) { if (chdir((char*)o->ptr) == -1) { addReplyErrorFormat(c,"Changing directory: %s", strerror(errno)); -- GitLab