]> git.saurik.com Git - redis.git/commitdiff
Log when the child rewriting the AOF is killed by stopAppendOnly()
authorantirez <antirez@gmail.com>
Wed, 21 Dec 2011 15:37:22 +0000 (16:37 +0100)
committerantirez <antirez@gmail.com>
Wed, 21 Dec 2011 15:37:22 +0000 (16:37 +0100)
src/aof.c

index b1f3c69371b996c9bfe220a9d5928eccf8c48775..cc7def1f69f356ae73466036ad98c9de3354a778 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -31,6 +31,8 @@ void stopAppendOnly(void) {
     if (server.aof_child_pid != -1) {
         int statloc;
 
+        redisLog(REDIS_NOTICE,"Killing running AOF rewrite child: %ld",
+            (long) server.aof_child_pid);
         if (kill(server.aof_child_pid,SIGKILL) != -1)
             wait3(&statloc,0,NULL);
         /* reset the buffer accumulating changes while the child saves */