mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 05:22:13 +00:00
AOF: rewriting child killed by SIGUSR1 is not an error.
This commit is contained in:
parent
828a87ba32
commit
39e87e10e1
@ -1459,8 +1459,10 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
|
||||
serverLog(LL_VERBOSE,
|
||||
"Background AOF rewrite signal handler took %lldus", ustime()-now);
|
||||
} else if (!bysignal && exitcode != 0) {
|
||||
server.aof_lastbgrewrite_status = C_ERR;
|
||||
|
||||
/* SIGUSR1 is whitelisted, so we have a way to kill a child without
|
||||
* tirggering an error conditon. */
|
||||
if (bysignal != SIGUSR1)
|
||||
server.aof_lastbgrewrite_status = C_ERR;
|
||||
serverLog(LL_WARNING,
|
||||
"Background AOF rewrite terminated with error");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user