MDEV-23807 ut_a(n_pending_flushes) failed in fil_node_t::prepare_to_close_or_detach()
Before closing file handles, we really must wait until there are no pending os_file_flush(). This was missed in commit b1ab211d (MDEV-15053) where we changed the following: fil_node_close_to_free(): Wait for n_pending==0. Because we no longer do an extra lookup of the tablespace between fil_io() and the completion of the operation, we must give fil_node_t::complete_io() a chance to decrement the counter.
Showing
Please register or sign in to comment