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
80ad7189
Commit
80ad7189
authored
Oct 14, 2011
by
antirez
Browse files
More informative error when DEBUG RELOAD fails.
parent
dd9ad570
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debug.c
View file @
80ad7189
...
@@ -222,7 +222,7 @@ void debugCommand(redisClient *c) {
...
@@ -222,7 +222,7 @@ void debugCommand(redisClient *c) {
}
}
emptyDb
();
emptyDb
();
if
(
rdbLoad
(
server
.
dbfilename
)
!=
REDIS_OK
)
{
if
(
rdbLoad
(
server
.
dbfilename
)
!=
REDIS_OK
)
{
addReply
(
c
,
shared
.
err
);
addReply
Error
(
c
,
"Error trying to load the RDB dump"
);
return
;
return
;
}
}
redisLog
(
REDIS_WARNING
,
"DB reloaded by DEBUG RELOAD"
);
redisLog
(
REDIS_WARNING
,
"DB reloaded by DEBUG RELOAD"
);
...
...
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