mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-38405 Assertion `tbl->trn == 0' failed in _ma_set_trn_for_table
Aria bulk insert operations disables share->now_transaction meaning a concurrent open of the stable table will have trn == &dummy_transaction_object for its MARIA_HA object during opening. As the _ma_set_trn_for_table is setting the trn, its harmless if the current trn is the dummy_transaction_object. Relax the assert to allow for this state.
This commit is contained in:
@@ -32,7 +32,7 @@ static inline void _ma_set_trn_for_table(MARIA_HA *tbl, TRN *newtrn)
|
||||
/* check that we are not calling this twice in a row */
|
||||
DBUG_ASSERT(newtrn->used_instances != (void*) tbl);
|
||||
DBUG_ASSERT(newtrn != &dummy_transaction_object);
|
||||
DBUG_ASSERT(tbl->trn == 0);
|
||||
DBUG_ASSERT(tbl->trn == 0 || tbl->trn == &dummy_transaction_object);
|
||||
DBUG_ASSERT(tbl->trn_next == 0);
|
||||
DBUG_ASSERT(tbl->trn_prev == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user