• davi@moksha.local's avatar
    Bug#25856 (HANDLER table OPEN in one connection lock DROP TABLE in another one) · c290b26c
    davi@moksha.local authored
    mysql_ha_open calls mysql_ha_close on the error path (unsupported) to close the (opened) table before inserting it into the tables hash list handler_tables_hash) but mysql_ha_close only closes tables which are on the hash list, causing the table to be left open and locked.
    
    This change moves the table close logic into a separate function that is always called on the error path of mysql_ha_open or on a normal handler close (mysql_ha_close).
    c290b26c
handler.test 9.81 KB