• Marko Mäkelä's avatar
    MDEV-16115 Hang after reducing innodb_encryption_threads · 7f67ef14
    Marko Mäkelä authored
    The test encryption.create_or_replace would occasionally fail,
    because some fil_space_t::n_pending_ops would never be decremented.
    
    fil_crypt_find_space_to_rotate(): If rotate_thread_t::should_shutdown()
    holds due to innodb_encryption_threads having been reduced, do
    release the reference.
    
    fil_space_remove_from_keyrotation(), fil_space_next(): Declare the
    functions static, simplify a little, and define in the same compilation
    unit with the only caller, fil_crypt_find_space_to_rotate().
    
    fil_crypt_key_mutex: Remove (unused).
    7f67ef14
fil0fil.h 47.8 KB