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
1f5e7b88
Commit
1f5e7b88
authored
Mar 08, 2015
by
antirez
Browse files
Config: activerehashing option support in CONFIG SET.
parent
f8f40afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
1f5e7b88
...
@@ -737,6 +737,11 @@ void configSetCommand(redisClient *c) {
...
@@ -737,6 +737,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