• Vladislav Vaintroub's avatar
    MDEV-17413 Crash in my_malloc_size_cb_func() during shutdown with · 00ddc8bc
    Vladislav Vaintroub authored
    forceful connection close.
    
    Fix is to ensure that when close_connection() is called from shutdown
    thread, current_thd is set. This that allocation callback for THD specific
    memory won't assert(in debug version), or crash (in 10.1 and later)
    
    close_connection() allocates THD specific memory e.g when it writes
    the final error packet, and compression is ON for the connection.
    00ddc8bc
mysqld.cc 331 KB