diff options
author | antirez <antirez@gmail.com> | 2015-03-08 15:33:42 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-03-08 15:33:49 +0100 |
commit | f5d9e3f7152c9d5bb5ac47592476e330f662411f (patch) | |
tree | 8198db7202f44494c959ce90015ee0b503c93be9 | |
parent | 45ff739cdf52988a479a2641ac7df5bd8594d57c (diff) | |
download | redis-f5d9e3f7152c9d5bb5ac47592476e330f662411f.tar.gz |
Config: activerehashing option support in CONFIG SET.
-rw-r--r-- | src/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 4132c8304..8998af9c6 100644 --- a/src/config.c +++ b/src/config.c @@ -785,6 +785,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)); |