Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f5d9e3f7
Commit
f5d9e3f7
authored
Mar 08, 2015
by
antirez
Browse files
Config: activerehashing option support in CONFIG SET.
parent
45ff739c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
f5d9e3f7
...
@@ -785,6 +785,11 @@ void configSetCommand(redisClient *c) {
...
@@ -785,6 +785,11 @@ void configSetCommand(redisClient *c) {
if (yn == -1) goto badfmt;
if (yn == -1) goto badfmt;
server.repl_slave_ro = yn;
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")) {
} else if (!strcasecmp(c->argv[2]->ptr,"dir")) {
if (chdir((char*)o->ptr) == -1) {
if (chdir((char*)o->ptr) == -1) {
addReplyErrorFormat(c,"Changing directory: %s", strerror(errno));
addReplyErrorFormat(c,"Changing directory: %s", strerror(errno));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment