• Dmitry Shulga's avatar
    Fixed bug#54486 - assert in my_seek, concurrent · dfb62272
    Dmitry Shulga authored
    DROP/CREATE SCHEMA, CREATE TABLE, REPAIR.
    
    The cause of assert was concurrent execution of
    DROP DATABASE and REPAIR TABLE where first statement
    deleted table's file .TMD at the same time as
    REPAIR TABLE tried to read file details from the old file
    that was just removed.
    
    Additionally was fixed trouble when DROP TABLE try delete
    all files belong to table being dropped at the same time
    when REPAIR TABLE statement has just deleted .TMD file.
    
    No regression test added because this would require adding a
    sync point to mysys/my_redel.c. Since this bug is not present in
    5.5+, adding test coverage was considered unnecessary.
    The patch has been verified using RQG testing.
    dfb62272
sql_db.cc 59.3 KB