• Sergei Golubchik's avatar
    MDEV-23536 Race condition between KILL and transaction commit · 9b750dcb
    Sergei Golubchik authored
    Server part:
      kill_handlerton() was accessing thd->ha_data[] for some other thd,
      while it could be concurrently modified by its owner thd.
    
      protect thd->ha_data[] modifications with a mutex.
      require this mutex when accessing thd->ha_data[] from kill_handlerton.
    
    InnoDB part:
      on close_connection, detach trx from thd before freeing the trx
    9b750dcb
handler.cc 197 KB