summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-03-25 11:27:35 +0200
committerantirez <antirez@gmail.com>2012-03-25 11:43:38 +0200
commit81f32c7b65c72a45fe1637ab0a661b144c54eb7c (patch)
tree00b07bb57bd31c926f7c267f84dab24c78de783e /src/aof.c
parent754643c1c703c773e03efec23a2b55ac5ba324cb (diff)
downloadredis-81f32c7b65c72a45fe1637ab0a661b144c54eb7c.tar.gz
New INFO field aof_delayed_fsync introduced.
This new field counts all the times Redis is configured with AOF enabled and fsync policy 'everysec', but the previous fsync performed by the background thread was not able to complete within two seconds, forcing Redis to perform a write against the AOF file while the fsync is still in progress (likely a blocking operation).
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aof.c b/src/aof.c
index 83633217f..4d3ce096a 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -108,6 +108,7 @@ void flushAppendOnlyFile(int force) {
}
/* Otherwise fall trough, and go write since we can't wait
* over two seconds. */
+ server.aof_delayed_fsync++;
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.");
}
}