mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Follow-up to MDEV-11236/MDEV-14846 debug assertion
ha_innobase::unlock_row(): Use a relaxed version of the trx_state_eq() debug assertion, because rr_unlock_row() may be invoked after an error has been already reported and the transaction has been rolled back.
This commit is contained in:
parent
723f87e9d3
commit
dbb3960ad8
2 changed files with 2 additions and 2 deletions
|
@ -9040,7 +9040,7 @@ ha_innobase::unlock_row(void)
|
|||
But there are some calls to this function from the SQL layer when the
|
||||
transaction is in state TRX_STATE_NOT_STARTED. The check on
|
||||
prebuilt->select_lock_type above gets around this issue. */
|
||||
ut_ad(trx_state_eq(prebuilt->trx, TRX_STATE_ACTIVE));
|
||||
ut_ad(trx_state_eq(prebuilt->trx, TRX_STATE_ACTIVE, true));
|
||||
|
||||
switch (prebuilt->row_read_type) {
|
||||
case ROW_READ_WITH_LOCKS:
|
||||
|
|
|
@ -9616,7 +9616,7 @@ ha_innobase::unlock_row(void)
|
|||
But there are some calls to this function from the SQL layer when the
|
||||
transaction is in state TRX_STATE_NOT_STARTED. The check on
|
||||
prebuilt->select_lock_type above gets around this issue. */
|
||||
ut_ad(trx_state_eq(prebuilt->trx, TRX_STATE_ACTIVE));
|
||||
ut_ad(trx_state_eq(prebuilt->trx, TRX_STATE_ACTIVE, true));
|
||||
|
||||
switch (prebuilt->row_read_type) {
|
||||
case ROW_READ_WITH_LOCKS:
|
||||
|
|
Loading…
Reference in a new issue