Commit 1af17f8d authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi
Browse files

ha_innobase.cc Fix autocommit in ha_innobase.cc

parent 2e182804
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2031,6 +2031,12 @@ ha_innobase::external_lock(
		trx->n_mysql_tables_in_use++;
	} else {
		trx->n_mysql_tables_in_use--;

		if (trx->n_mysql_tables_in_use == 0 &&
		    !(thd->options
		      & (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN))) {
		  innobase_commit(thd, trx);
		}
	}

	DBUG_RETURN(error);