mirror of
https://github.com/fluencelabs/redis
synced 2025-05-07 16:32:14 +00:00
Log when the child rewriting the AOF is killed by stopAppendOnly()
This commit is contained in:
parent
1844f9900f
commit
b941417c1b
@ -31,6 +31,8 @@ void stopAppendOnly(void) {
|
|||||||
if (server.aof_child_pid != -1) {
|
if (server.aof_child_pid != -1) {
|
||||||
int statloc;
|
int statloc;
|
||||||
|
|
||||||
|
redisLog(REDIS_NOTICE,"Killing running AOF rewrite child: %ld",
|
||||||
|
(long) server.aof_child_pid);
|
||||||
if (kill(server.aof_child_pid,SIGKILL) != -1)
|
if (kill(server.aof_child_pid,SIGKILL) != -1)
|
||||||
wait3(&statloc,0,NULL);
|
wait3(&statloc,0,NULL);
|
||||||
/* reset the buffer accumulating changes while the child saves */
|
/* reset the buffer accumulating changes while the child saves */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user