Commit fc2ff464 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26017: Assertion stat.flush_list_bytes <= curr_pool_size

buf_flush_relocate_on_flush_list(): If we are removing the block from
buf_pool.flush_list, subtract its size from buf_pool.stat.flush_list_bytes.
This fixes a regression that was introduced in
commit 22b62eda (MDEV-25113).
parent aa95c423
...@@ -321,6 +321,7 @@ buf_flush_relocate_on_flush_list( ...@@ -321,6 +321,7 @@ buf_flush_relocate_on_flush_list(
} }
if (lsn == 1) { if (lsn == 1) {
buf_pool.stat.flush_list_bytes -= bpage->physical_size();
was_clean: was_clean:
dpage->list.prev = nullptr; dpage->list.prev = nullptr;
dpage->list.next = nullptr; dpage->list.next = nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment