diff options
author | unknown <heikki@hundin.mysql.fi> | 2005-02-21 18:54:06 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2005-02-21 18:54:06 +0200 |
commit | 7a43b4c66596277d9629b82e1bc58e5071544778 (patch) | |
tree | 36ee17863d8195de8d69cc5a3b8c651bdd3fc931 | |
parent | 9cba39cab45a5d0a4ee81385e5bbe877d22c3df4 (diff) | |
download | mariadb-git-7a43b4c66596277d9629b82e1bc58e5071544778.tar.gz |
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
-rw-r--r-- | sql/ha_innodb.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index fd275b19f77..d6e17b3b5e2 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -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); |