• Jon Olav Hauglid's avatar
    Bug #57663 Concurrent statement using stored function and DROP DATABASE · 0ef8d8e2
    Jon Olav Hauglid authored
               breaks SBR
    
    This pre-requisite patch refactors the code for dropping tables, used
    by DROP TABLE and DROP DATABASE. The patch moves the code for acquiring
    metadata locks out of mysql_rm_table_part2() and makes it the
    responsibility of the caller. This in preparation of changing the
    DROP DATABASE implementation to acquire all metadata locks before any
    changes are made. mysql_rm_table_part2() is renamed
    mysql_rm_table_no_locks() to reflect the change.
    0ef8d8e2
sql_table.cc 229 KB