• unknown's avatar
    BUG#23312 - server hangs 'closing tables' with insert delayed,flush · 863a3f0f
    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.
    863a3f0f
sql_insert.cc 55.4 KB