]> git.saurik.com Git - redis.git/commitdiff
Emit a log message when AOF fsync is still in progress but we are forced to write...
authorantirez <antirez@gmail.com>
Mon, 19 Sep 2011 14:52:13 +0000 (16:52 +0200)
committerantirez <antirez@gmail.com>
Mon, 19 Sep 2011 14:52:13 +0000 (16:52 +0200)
src/aof.c

index 5417e76b14339eeb4aa84d73deb32801db4b9e38..fb9e78512ee77c2f73469983f0e6e528247edafd 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -101,6 +101,7 @@ void flushAppendOnlyFile(int force) {
             }
             /* Otherwise fall trough, and go write since we can't wait
              * over two seconds. */
+            redisLog(REDIS_NOTICE,"Asynchronous AOF fsync is taking too long (disk is busy?). Writing the AOF buffer without waiting for fsync to complete, this may slow down Redis.");
         }
     }
     /* If you are following this code path, then we are going to write so