• Monty's avatar
    Fixed race condition between flush tables and insert delayed · 7bb3a522
    Monty authored
    FLUSH TABLES kills all insert delayed treads. If this happens at same time
    as a newly started insert delayed query, the insert may fail with either
    and error ("Query interrupted") or the row may be lost.
    This patch fixes this by changing a failed attempt of get_delay_table() to
    convert the query to use a normal insert.
    
    The test case for this patch can be found in the FLUSH TABLES commit after
    this one.
    7bb3a522
sql_insert.cc 156 KB