From f3eab7a9b458f7647f39f0ad670b8a7e106c8cbf Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 Jul 2014 17:42:29 +0200 Subject: [PATCH] Fixed conditional for aof-write-pending-fsync latency event selection. --- src/aof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aof.c b/src/aof.c index e9381dd1..bf83761f 100644 --- a/src/aof.c +++ b/src/aof.c @@ -272,7 +272,7 @@ void flushAppendOnlyFile(int force) { * active, and when the above two conditions are missing. * We also use an additional event name to save all samples which is * useful for graphing / monitoring purposes. */ - if (server.aof_flush_postponed_start != 0) { + if (sync_in_progress) { latencyAddSampleIfNeeded("aof-write-pending-fsync",latency); } else if (server.aof_child_pid != -1 || server.rdb_child_pid != -1) { latencyAddSampleIfNeeded("aof-write-active-child",latency); -- GitLab