Commit 7a43b4c6 authored by unknown's avatar unknown
Browse files

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
parent 9cba39ca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);