summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-09-19 16:52:13 +0200
committerantirez <antirez@gmail.com>2011-09-19 17:44:17 +0200
commit6ca793fc21b0631658c9075a442e6c1608216eb5 (patch)
tree62462140e6d54f4ae862e461cea3f903caf23a25
parent01ac844ba2afb75143cf1156d6940d4718c67a14 (diff)
downloadredis-6ca793fc21b0631658c9075a442e6c1608216eb5.tar.gz
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.
-rw-r--r--src/aof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aof.c b/src/aof.c
index 85330d18d..a8ece933e 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