• Sergey Vojtovich's avatar
    MDEV-9728 - Hard crash in metadata_lock_info · 82a96926
    Sergey Vojtovich authored
    metadata_lock_info plugin called MDL_context::find_ticket() to obtain lock
    duration, which in turn iterates foreign thread private lists. These lists
    can be updated by owner thread without protection.
    
    Fixed by iterating threads (instead of MDL locks and tickets) and obtaining
    data through APC.
    
    Also fixed mdl_iterate_lock() to initialize iterator under prlock protection.
    82a96926
mdl.h 32.5 KB