Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
eb10bb31
Commit
eb10bb31
authored
Feb 13, 2014
by
antirez
Browse files
Log when CONFIG REWRITE goes bad.
parent
ebdb37ce
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
eb10bb31
...
@@ -1777,6 +1777,7 @@ void configCommand(redisClient *c) {
...
@@ -1777,6 +1777,7 @@ void configCommand(redisClient *c) {
return
;
return
;
}
}
if
(
rewriteConfig
(
server
.
configfile
)
==
-
1
)
{
if
(
rewriteConfig
(
server
.
configfile
)
==
-
1
)
{
redisLog
(
REDIS_WARNING
,
"CONFIG REWRITE failed: %s"
,
strerror
(
errno
));
addReplyErrorFormat
(
c
,
"Rewriting config file: %s"
,
strerror
(
errno
));
addReplyErrorFormat
(
c
,
"Rewriting config file: %s"
,
strerror
(
errno
));
}
else
{
}
else
{
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
...
...
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