• Sergei Golubchik's avatar
    MDEV-12761 Error return from external_lock make the server crash · f9264280
    Sergei Golubchik authored
    bunch of bugs when external_lock() fails on unlock:
    * mi_lock_database() used mi_mark_crashed() under share->intern_lock,
      but mi_mark_crashed() itself locks this mutex.
    * handler::close() required table to be unlocked, but failed
      external_lock didn't count as unlock
    * mysql_unlock_tables() ignored all unlock errors, but they still set
      the error status in stmt_da.
    f9264280
myisam_debug.result 1.19 KB