summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2005-02-21 18:54:06 +0200
committerunknown <heikki@hundin.mysql.fi>2005-02-21 18:54:06 +0200
commit7a43b4c66596277d9629b82e1bc58e5071544778 (patch)
tree36ee17863d8195de8d69cc5a3b8c651bdd3fc931
parent9cba39cab45a5d0a4ee81385e5bbe877d22c3df4 (diff)
downloadmariadb-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.cc5
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);