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
8ea459cc
Commit
8ea459cc
authored
Jul 28, 2014
by
Yossi Gottlieb
Committed by
antirez
Jul 28, 2014
Browse files
Fail SYNC if background save child aborted due to a signal.
parent
c2cfdc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
8ea459cc
...
...
@@ -1221,7 +1221,7 @@ void backgroundSaveDoneHandler(int exitcode, int bysignal) {
server
.
rdb_save_time_start
=
-
1
;
/* Possibly there are slaves waiting for a BGSAVE in order to be served
* (the first stage of SYNC is a bulk transfer of dump.rdb) */
updateSlavesWaitingBgsave
(
exitcode
==
0
?
REDIS_OK
:
REDIS_ERR
);
updateSlavesWaitingBgsave
(
(
!
bysignal
&&
exitcode
==
0
)
?
REDIS_OK
:
REDIS_ERR
);
}
void
saveCommand
(
redisClient
*
c
)
{
...
...
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