MDEV-31442 page_cleaner thread aborts while releasing the tablespace

- InnoDB shouldn't acquire the tablespace when it is being stopped
or closed
parent f7e9ac0d
...@@ -1526,7 +1526,7 @@ template<bool have_reference> inline void fil_space_t::flush() ...@@ -1526,7 +1526,7 @@ template<bool have_reference> inline void fil_space_t::flush()
flush_low(); flush_low();
else else
{ {
if (!(acquire_low(STOPPING & CLOSING) & (STOPPING | CLOSING))) if (!(acquire_low(STOPPING | CLOSING) & (STOPPING | CLOSING)))
{ {
flush_low(); flush_low();
release(); release();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment