MDEV-33064: Sync trx->wsrep state from THD on trx start

Replace trx->wsrep= 0 with an assert in trx_rollback_for_mysql()

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
Denis Protivensky 2024-06-20 12:34:55 +03:00 committed by Julius Goryavsky
parent 901c6c7ab6
commit d1f2ceee1b

View file

@ -211,7 +211,7 @@ dberr_t trx_rollback_for_mysql(trx_t* trx)
trx->will_lock = false;
ut_ad(trx->mysql_thd);
#ifdef WITH_WSREP
trx->wsrep= false;
ut_ad(!trx->is_wsrep());
trx->lock.was_chosen_as_wsrep_victim= false;
#endif
return(DB_SUCCESS);