mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
MDEV-18115 fix counter
This commit is contained in:
parent
68fe5f534c
commit
3d9759a9b5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue