MDEV-31442 page_cleaner thread aborts while releasing the tablespace

- InnoDB shouldn't acquire the tablespace when it is being stopped
or closed
This commit is contained in:
Thirunarayanan Balathandayuthapani 2023-06-12 16:10:39 +05:30
parent f7e9ac0d88
commit bd076d4dff

View File

@ -1526,7 +1526,7 @@ template<bool have_reference> 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();