summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-06 08:51:38 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-06 08:51:38 +0300
commit62516c53c1bd988a25bbdf7d5c98fe5aade159be (patch)
treeeb95951a1e82fadcb4871df49af58e11cb3bfcdc
parent095d656dea8a9e4f8a1e47ad3832a4e0bae4706c (diff)
downloadmariadb-git-62516c53c1bd988a25bbdf7d5c98fe5aade159be.tar.gz
MDEV-22816 Assertion `node->space == fil_system.sys_space' failed in fil_aio_callback
fil_aio_callback(): Remove a bogus assertion that was added in commit b1ab211dee599eabd9a5b886fafa3adea29ae041 (MDEV-15053). We will have !bpage for any write by buf_flush_freed_page().
-rw-r--r--storage/innobase/fil/fil0fil.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 75e49d24ad2..7c561dd05ce 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -3966,10 +3966,9 @@ void fil_aio_callback(os_aio_userdata_t *data)
buf_page_t *bpage= static_cast<buf_page_t*>(data->message);
if (!bpage)
{
- /* Asynchronous single page writes from the doublewrite buffer
- don't have access to the page. */
+ /* Asynchronous single page writes from the doublewrite buffer,
+ or calls from buf_flush_freed_page() don't have access to the page. */
ut_ad(data->type.is_write());
- ut_ad(node->space == fil_system.sys_space);
ut_ad(!srv_read_only_mode);
write_completed:
mutex_enter(&fil_system.mutex);