Skip to content
Permalink
Browse files
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 22b62ed (MDEV-25113).
  • Loading branch information
dr-m committed Jun 26, 2021
1 parent aa95c42 commit fc2ff46
Showing 1 changed file with 1 addition and 0 deletions.
@@ -321,6 +321,7 @@ buf_flush_relocate_on_flush_list(
}

if (lsn == 1) {
buf_pool.stat.flush_list_bytes -= bpage->physical_size();
was_clean:
dpage->list.prev = nullptr;
dpage->list.next = nullptr;

0 comments on commit fc2ff46

Please sign in to comment.