From bd076d4dfff64c3ee3d7abc8fb8108a79c36d97c Mon Sep 17 00:00:00 2001 From: Thirunarayanan Balathandayuthapani Date: Mon, 12 Jun 2023 16:10:39 +0530 Subject: [PATCH] MDEV-31442 page_cleaner thread aborts while releasing the tablespace - InnoDB shouldn't acquire the tablespace when it is being stopped or closed --- storage/innobase/include/fil0fil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h index 053fe7a68e0..10c084bbbf1 100644 --- a/storage/innobase/include/fil0fil.h +++ b/storage/innobase/include/fil0fil.h @@ -1526,7 +1526,7 @@ template inline void fil_space_t::flush() flush_low(); else { - if (!(acquire_low(STOPPING & CLOSING) & (STOPPING | CLOSING))) + if (!(acquire_low(STOPPING | CLOSING) & (STOPPING | CLOSING))) { flush_low(); release();