mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
ha_innodb.cc:
Fix crash reported by Pekka Nousiainen if skip-innodb: do not try to release InnoDB's temporary latches if InnoDB has not been inited sql/ha_innodb.cc: Fix crash reported by Pekka Nousiainen if skip-innodb: do not try to release InnoDB's temporary latches if InnoDB has not been inited
This commit is contained in:
parent
9cba39cab4
commit
7a43b4c665
1 changed files with 5 additions and 0 deletions
|
@ -336,6 +336,11 @@ innobase_release_temporary_latches(
|
|||
/*===============================*/
|
||||
THD *thd)
|
||||
{
|
||||
if (!innodb_inited) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
trx_t *trx= (trx_t*) thd->ha_data[innobase_hton.slot];
|
||||
if (trx)
|
||||
innobase_release_stat_resources(trx);
|
||||
|
|
Loading…
Add table
Reference in a new issue