• Jon Olav Hauglid's avatar
    Backport of revno: 3711.1.1 · d40ef57d
    Jon Olav Hauglid authored
    Bug #48725 Assert !thd->is_error() in delayed_get_table()
    
    This bug is a regression introduced by the patch for Bug #45949.
    
    If the handler thread for INSERT DELAYED was killed by e.g.
    FLUSH TABLES, the error message is copied from the handler thread
    to the connection thread. But the error was not reacted on, so the
    connection thread continued as normal, leading to an eventual assert.
    
    No test case added as it would have required sync points to work
    for handler threads. The plan is to add this in the scope of 
    Bug #48725 / Bug #48541. The patch has been tested with the 
    non-deterministic test case given in the bug description.
    d40ef57d
sql_insert.cc 129 KB