• Vladislav Vaintroub's avatar
    MDEV-16264 prerequisite patch, ha_preshutdown. · 7e08dd85
    Vladislav Vaintroub authored
    This is a prerequisite patch required to remove Innodb's
    thd_destructor_proxy thread.
    
    The patch implement pre-shutdown functionality for handlers.
    
    A storage engine might need to perform some work after all user
    connections are shut down, but before killing off the plugins.
    
    The reason is that an SE could still be using some of the
    server infrastructure. In case of Innodb this would be purge threads,
    that call into the server to calculate results of virtual function,
    acquire MDL locks on tables, or possibly also use the audit plugins.
    7e08dd85
handler.h 177 KB