Merge 10.5 into 10.6

This commit is contained in:
Marko Mäkelä 2022-12-15 16:18:28 +02:00
commit 4f6830255c

View file

@ -1603,9 +1603,10 @@ template<bool have_reference> inline void fil_space_t::flush()
}
else if (have_reference)
flush_low();
else if (!(acquire_low() & STOPPING))
else
{
flush_low();
if (!(acquire_low() & (STOPPING | CLOSING)))
flush_low();
release();
}
}