diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h index 10365d167b7..053fe7a68e0 100644 --- a/storage/innobase/include/fil0fil.h +++ b/storage/innobase/include/fil0fil.h @@ -1526,9 +1526,11 @@ template inline void fil_space_t::flush() flush_low(); else { - if (!(acquire_low() & (STOPPING | CLOSING))) + if (!(acquire_low(STOPPING & CLOSING) & (STOPPING | CLOSING))) + { flush_low(); - release(); + release(); + } } }