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
beb1356b
Commit
beb1356b
authored
Sep 27, 2019
by
antirez
Browse files
Improve error message in BGSAVE.
parent
ae3ef964
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
beb1356b
...
@@ -2590,9 +2590,9 @@ void bgsaveCommand(client *c) {
...
@@ -2590,9 +2590,9 @@ void bgsaveCommand(client *c) {
addReplyStatus
(
c
,
"Background saving scheduled"
);
addReplyStatus
(
c
,
"Background saving scheduled"
);
}
else
{
}
else
{
addReplyError
(
c
,
addReplyError
(
c
,
"Another
BG operation is in progress
: can't BGSAVE right now. "
"Another
child process is active (AOF?)
: can't BGSAVE right now. "
"Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever "
"Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever "
"possible."
);
"possible."
);
}
}
}
else
if
(
rdbSaveBackground
(
server
.
rdb_filename
,
rsiptr
)
==
C_OK
)
{
}
else
if
(
rdbSaveBackground
(
server
.
rdb_filename
,
rsiptr
)
==
C_OK
)
{
addReplyStatus
(
c
,
"Background saving started"
);
addReplyStatus
(
c
,
"Background saving started"
);
...
...
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