mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-6247 post-fix: Re-enable some debug assertions
These assertions were disabled in MariaDB 10.1.1 in
commit df4dd593f2
with a bogus comment referring to the function wsrep_fake_trx_id()
that was introduced in the very same commit.
This commit is contained in:
parent
5f896b3604
commit
1cf28964f5
4 changed files with 0 additions and 16 deletions
|
@ -445,10 +445,7 @@ trx_id_t
|
|||
trx_sys_get_new_trx_id(void)
|
||||
/*========================*/
|
||||
{
|
||||
#ifndef WITH_WSREP
|
||||
/* wsrep_fake_trx_id violates this assert */
|
||||
ut_ad(mutex_own(&trx_sys->mutex));
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
/* VERY important: after the database is started, max_trx_id value is
|
||||
divisible by TRX_SYS_TRX_ID_WRITE_MARGIN, and the following if
|
||||
|
|
|
@ -180,12 +180,7 @@ trx_sys_flush_max_trx_id(void)
|
|||
mtr_t mtr;
|
||||
trx_sysf_t* sys_header;
|
||||
|
||||
#ifndef WITH_WSREP
|
||||
/* wsrep_fake_trx_id violates this assert
|
||||
* Copied from trx_sys_get_new_trx_id
|
||||
*/
|
||||
ut_ad(mutex_own(&trx_sys->mutex));
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
if (!srv_read_only_mode) {
|
||||
mtr_start(&mtr);
|
||||
|
|
|
@ -474,10 +474,7 @@ trx_id_t
|
|||
trx_sys_get_new_trx_id(void)
|
||||
/*========================*/
|
||||
{
|
||||
#ifndef WITH_WSREP
|
||||
/* wsrep_fake_trx_id violates this assert */
|
||||
ut_ad(mutex_own(&trx_sys->mutex));
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
/* VERY important: after the database is started, max_trx_id value is
|
||||
divisible by TRX_SYS_TRX_ID_WRITE_MARGIN, and the following if
|
||||
|
|
|
@ -184,12 +184,7 @@ trx_sys_flush_max_trx_id(void)
|
|||
mtr_t mtr;
|
||||
trx_sysf_t* sys_header;
|
||||
|
||||
#ifndef WITH_WSREP
|
||||
/* wsrep_fake_trx_id violates this assert
|
||||
* Copied from trx_sys_get_new_trx_id
|
||||
*/
|
||||
ut_ad(mutex_own(&trx_sys->mutex));
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
if (!srv_read_only_mode) {
|
||||
mtr_start(&mtr);
|
||||
|
|
Loading…
Add table
Reference in a new issue