Commit 75dd7a04 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-24434 Assertion trx->in_rw_trx_list... in trx_sys_any_active_transactions()

trx_sys_any_active_transactions(): Remove a bogus debug assertion.
In trx_commit_in_memory() and trx_erase_lists(), we will remove
the transaction from trx_sys->rw_trx_list and set the state to
TRX_STATE_COMMITTED_IN_MEMORY.
parent 058d93d4
/***************************************************************************** /*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2020, MariaDB Corporation. Copyright (c) 2017, 2021, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -997,11 +997,6 @@ trx_sys_any_active_transactions(void) ...@@ -997,11 +997,6 @@ trx_sys_any_active_transactions(void)
/* This may count some ACTIVE transactions twice, /* This may count some ACTIVE transactions twice,
both in rw_trx_list and mysql_trx_list. */ both in rw_trx_list and mysql_trx_list. */
total_trx += trx->state == TRX_STATE_ACTIVE; total_trx += trx->state == TRX_STATE_ACTIVE;
/* Any PREPARED or COMMITTED transactions must be
in rw_trx_list, so it suffices to count them there. */
ut_ad(trx->in_rw_trx_list
|| trx->state == TRX_STATE_NOT_STARTED
|| trx->state == TRX_STATE_ACTIVE);
trx_mutex_exit(trx); trx_mutex_exit(trx);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment