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
885c4f85
Commit
885c4f85
authored
Nov 01, 2017
by
zhaozhao.zz
Browse files
PSYNC2 & RDB: fix the missing rdbSaveInfo for BGSAVE
parent
6ddf0ea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
885c4f85
...
...
@@ -1999,6 +1999,9 @@ void bgsaveCommand(client *c) {
}
}
rdbSaveInfo rsi, *rsiptr;
rsiptr = rdbPopulateSaveInfo(&rsi);
if (server.rdb_child_pid != -1) {
addReplyError(c,"Background save already in progress");
} else if (server.aof_child_pid != -1) {
...
...
@@ -2011,7 +2014,7 @@ void bgsaveCommand(client *c) {
"Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever "
"possible.");
}
} else if (rdbSaveBackground(server.rdb_filename,
NULL
) == C_OK) {
} else if (rdbSaveBackground(server.rdb_filename,
rsiptr
) == C_OK) {
addReplyStatus(c,"Background saving started");
} else {
addReply(c,shared.err);
...
...
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