mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Remove redundant check_trx_exists() and ut_a() from r701,
as suggested by Marko
This commit is contained in:
parent
b17cae8c6a
commit
ac88d25b33
1 changed files with 1 additions and 7 deletions
|
@ -5023,18 +5023,12 @@ ha_innobase::delete_all_rows(void)
|
|||
}
|
||||
|
||||
/* Get the transaction associated with the current thd, or create one
|
||||
if not yet created */
|
||||
if not yet created, and update prebuilt->trx */
|
||||
|
||||
trx = check_trx_exists(thd);
|
||||
|
||||
/* Update prebuilt->trx */
|
||||
update_thd(current_thd);
|
||||
|
||||
/* Truncate the table in InnoDB */
|
||||
|
||||
ut_a(prebuilt->trx ==
|
||||
(trx_t*) current_thd->ha_data[innobase_hton.slot]);
|
||||
|
||||
error = row_truncate_table_for_mysql(prebuilt->table, trx);
|
||||
if (error == DB_ERROR) {
|
||||
/* Cannot truncate; resort to ha_innobase::delete_row() */
|
||||
|
|
Loading…
Reference in a new issue