mariadb/storage/innobase/trx
Marko Mäkelä 5dd028f8ee MDEV-24700 Assertion "lock not found"==0 in lock_table_x_unlock()
After an ignored INSERT IGNORE statement into an empty table, we would
wrongly use the MDEV-515 table-level undo logging for a subsequent
REPLACE statement.

ha_innobase::reset_template(): Clear m_prebuilt->ins_node->bulk_insert
on every statement boundary.

ha_innobase::start_stmt(): Invoke end_bulk_insert().

ha_innobase::extra(): Avoid accessing m_prebuilt->trx. Do not call
thd_to_trx(). Invoke end_bulk_insert() and try to reset bulk_insert
when changing the REPLACE or IGNORE settings.

trx_mod_table_time_t::WAS_BULK: Use a distinct value from BULK.

trx_undo_report_row_operation(): Add debug assertions.

Note: Some calls to end_bulk_insert() may be redundant, but statement
boundaries are not always clear in the API (especially in the
presence of LOCK TABLES or stored procedures).
2021-01-27 16:54:38 +02:00
..
trx0i_s.cc Cleanup: Remove LOCK_REC (which was mutually exclusive with LOCK_TABLE) 2021-01-27 15:45:39 +02:00
trx0purge.cc MDEV-24671: Replace lock_wait_timeout_task with mysql_cond_timedwait() 2021-01-27 15:45:39 +02:00
trx0rec.cc MDEV-24700 Assertion "lock not found"==0 in lock_table_x_unlock() 2021-01-27 16:54:38 +02:00
trx0roll.cc MDEV-24671: Replace lock_wait_timeout_task with mysql_cond_timedwait() 2021-01-27 15:45:39 +02:00
trx0rseg.cc Merge 10.5 into 10.6 2021-01-25 12:56:30 +02:00
trx0sys.cc MDEV-24142: Remove the LatchDebug interface to rw-locks 2020-12-03 15:27:50 +02:00
trx0trx.cc MDEV-24671: Replace lock_wait_timeout_task with mysql_cond_timedwait() 2021-01-27 15:45:39 +02:00
trx0undo.cc Merge 10.5 into 10.6 2021-01-25 12:56:30 +02:00