mariadb/mysql-test/suite/galera_sr/t/MENT-2038.test
Daniele Sciascia c43db43a7c MENT-2038 Assert WSREP(thd) fails in wsrep_restore_kill_after_commit
Fix wrong assertion: function wsrep_restore_kill_after_commit()
asserts `WSREP(thd)`, however for the caller (wsrep_after_statement())
it is enough that the THD  has an active transaction. Fixed the
assertion accordingly.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2025-01-27 19:05:27 +01:00

12 lines
319 B
Text

#
# MENT-2038: Assertion `(thd && (WSREP_PROVIDER_EXISTS_ && thd->variables.wsrep_on))'
# failed in void wsrep_restore_kill_after_commit(THD*)
#
--source include/galera_cluster.inc
SET SESSION wsrep_on=OFF;
BEGIN;
BEGIN; # If bug is present, assertion triggers during implicit commit
COMMIT;
SET SESSION wsrep_on=ON;