提交 f3eab7a9 编写于 作者: A antirez

Fixed conditional for aof-write-pending-fsync latency event selection.

上级 f3c4111e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册