• Marko Mäkelä's avatar
    MDEV-25491 preparation: Clean up tablespace destruction · a81aec15
    Marko Mäkelä authored
    fil_check_pending_ops(), fil_check_pending_io(): Remove.
    These functions were actually duplicating each other ever since
    commit 118e258a (MDEV-23855).
    
    fil_space_t::check_pending_operations(): Replaces
    fil_check_pending_operations() and incorporates the logic of
    fil_check_pending_ops(). Avoid unnecessary lookups for the tablespace.
    Just wait for the reference count to drop to zero.
    
    fil_space_t::io(): Remove an unnecessary condition. We can (and
    probably better should) refuse asynchronous reads of undo tablespaces
    that are being truncated.
    
    fil_truncate_prepare(): Remove.
    
    trx_purge_truncate_history(): Implement the necessary steps that used
    to be in fil_truncate_prepare().
    a81aec15
fil0fil.h 58 KB