From 77ca5fcba639eeb8dec6525b4a43606a734175c7 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 19 Sep 2011 16:52:13 +0200 Subject: [PATCH] Emit a log message when AOF fsync is still in progress but we are forced to write from the main thread since two seconds already elapsed. --- src/aof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aof.c b/src/aof.c index 5417e76b..fb9e7851 100644 --- 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