Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions storage/innobase/buf/buf0flu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class async_flush_lsn
void try_clear_if_at_most(lsn_t threshold) noexcept
{
lsn_t snapshot= m_lsn.load();
if (!snapshot)
return; /* already cleared: avoid a redundant atomic CAS */
if (threshold >= snapshot)
m_lsn.compare_exchange_strong(snapshot, 0);
}
Expand Down