• Sergei Petrunia's avatar
    MDEV-31877: ASAN errors in Exec_time_tracker::get_cycles with innodb slow log verbosity · 8d210fc2
    Sergei Petrunia authored
    Remove redundant delete_explain_query() calls in
    
    sp_instr_set::exec_core(), sp_instr_set_row_field::exec_core(),
    sp_instr_set_row_field_by_name::exec_core().
    
    These calls are made before the SP instruction's tables are
    "closed" by close_thread_tables() call.
    
    When we call close_thread_tables() after that, we no longer
    can collect engine's counter variables, as they use the data
    structures that are located in the Explain Data Structures.
    
    Also, these delete_explain_query() calls are redundant, as
    sp_lex_keeper::reset_lex_and_exec_core() has another
    delete_explain_query() call, which is located in the right
    location after the close_thread_tables() call.
    8d210fc2
sp.test 222 KB