summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-06-26 11:52:25 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-06-26 11:52:25 +0300
commitfc2ff464696f6d1d23aa722df011781ba2ddb440 (patch)
tree01e9e49adc57b944f306f771f1304c0674507eae
parentaa95c4236093afdf1e8fcb55bda5987e2db033e7 (diff)
downloadmariadb-git-fc2ff464696f6d1d23aa722df011781ba2ddb440.tar.gz
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 22b62edaedddb1cabd5b855cdd39a5e90a5695a2 (MDEV-25113).
-rw-r--r--storage/innobase/buf/buf0flu.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc
index c80398e9967..e6999222447 100644
--- a/storage/innobase/buf/buf0flu.cc
+++ b/storage/innobase/buf/buf0flu.cc
@@ -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;