summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-03-08 15:33:42 +0100
committerantirez <antirez@gmail.com>2015-03-08 15:33:42 +0100
commita664040eb773922bd3190bd13a272bfeb70e092e (patch)
tree00a91e3ee4b531d6679bb9a23e76155af07c3ca5 /src/config.c
parent509a6cc1e89e3d988511d8595dbc47a4e04b999c (diff)
downloadredis-a664040eb773922bd3190bd13a272bfeb70e092e.tar.gz
Config: activerehashing option support in CONFIG SET.
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 3963a1218..05c27235e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -800,6 +800,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));