MDEV-18115 fix counter

This commit is contained in:
Eugene Kosov 2020-01-07 23:43:30 +07:00
parent 68fe5f534c
commit 3d9759a9b5

View file

@ -655,7 +655,7 @@ void log_t::files::fsync()
ib::fatal() << "os_file_flush(" << file_names[idx] << ") failed";
}
}
log_sys.pending_flushes.fetch_add(1, std::memory_order_release);
log_sys.pending_flushes.fetch_sub(1, std::memory_order_release);
log_sys.flushes.fetch_add(1, std::memory_order_release);
}
@ -672,7 +672,7 @@ void log_t::files::fdatasync()
ib::fatal() << "os_file_flush_data(" << file_names[idx] << ") failed";
}
}
log_sys.pending_flushes.fetch_add(1, std::memory_order_release);
log_sys.pending_flushes.fetch_sub(1, std::memory_order_release);
log_sys.flushes.fetch_add(1, std::memory_order_release);
}