Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
11.8.8
-
Related to performance
-
Avoid a redundant CAS operation in the flusher thread.
-
Q3/2026 Server Maintenance
Description
MDEV-39600 added an helper function to clear buf_flush_async_lsn with an atomic CAS to preserve concurrent bumps.
Turns out that indeed there is no need to CAS with 0 if the snapshot is already 0, therefore for the common case (no-async-flushing), the CAS can be avoided.
Attachments
Issue Links
- is caused by
-
MDEV-39600 buf_flush_ahead() for async flushing causes contention on buf_pool.flush_list_mutex
-
- Closed
-
- relates to
-
PERF-475 Loading...