• unknown's avatar
    BUG#23312 - server hangs 'closing tables' with insert delayed,flush · 88f55bf8
    unknown authored
                tables,alter table
    Deadlock could happen if there are delayed insert + flush tables + alter table
    running concurrently.
    
    This is fixed by removing a redundant mutex lock when killing a delayed thread.
    
    
    sql/sql_insert.cc:
      Removed redundant delayed thread mutex lock, that could result in a deadlock.
      LOCK_delayed_insert is sufficient to be sure that no other thread frees delayed
      handler.
    88f55bf8
sql_insert.cc 55.4 KB