mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
main.alter_table_online_debug: fix race in XA tests
This commit is contained in:
@ -1810,11 +1810,11 @@ xa begin 'x1';
|
||||
update t set a = 2 where a = 1;
|
||||
xa end 'x1';
|
||||
xa prepare 'x1';
|
||||
set debug_sync= 'THD_cleanup_after_trans_cleanup signal xa_detach';
|
||||
set debug_sync= 'thread_end signal xa_detach wait_for close';
|
||||
--disconnect con1
|
||||
|
||||
--connection con2
|
||||
set debug_sync= 'now wait_for xa_detach';
|
||||
set debug_sync= 'now signal close wait_for xa_detach';
|
||||
xa commit 'x1';
|
||||
set debug_sync= 'now signal go';
|
||||
--connection default
|
||||
@ -1832,11 +1832,11 @@ xa begin 'x2';
|
||||
insert into t values (53);
|
||||
xa end 'x2';
|
||||
xa prepare 'x2';
|
||||
set debug_sync= 'THD_cleanup_after_trans_cleanup signal xa_detach';
|
||||
set debug_sync= 'thread_end signal xa_detach wait_for close';
|
||||
--disconnect con1
|
||||
|
||||
--connection con2
|
||||
set debug_sync= 'now wait_for xa_detach';
|
||||
set debug_sync= 'now signal close wait_for xa_detach';
|
||||
xa rollback 'x2';
|
||||
set debug_sync= 'now signal go';
|
||||
--connection default
|
||||
@ -1858,13 +1858,13 @@ insert into t values (3);
|
||||
xa end 'xuncommitted';
|
||||
xa prepare 'xuncommitted';
|
||||
set debug_sync= 'now signal go';
|
||||
set debug_sync= 'THD_cleanup_after_trans_cleanup signal xa_detach';
|
||||
set debug_sync= 'thread_end signal xa_detach wait_for close';
|
||||
--disconnect con1
|
||||
|
||||
--connection default
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
--reap # alter table
|
||||
set debug_sync= 'now wait_for xa_detach';
|
||||
set debug_sync= 'now signal close wait_for xa_detach';
|
||||
xa rollback 'xuncommitted';
|
||||
|
||||
select * from t;
|
||||
@ -1882,13 +1882,13 @@ insert into t values (3);
|
||||
xa end 'committed_later';
|
||||
xa prepare 'committed_later';
|
||||
set debug_sync= 'now signal go';
|
||||
set debug_sync= 'THD_cleanup_after_trans_cleanup signal xa_detach';
|
||||
set debug_sync= 'thread_end signal xa_detach wait_for close';
|
||||
--disconnect con1
|
||||
|
||||
--connection default
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
--reap # alter table
|
||||
set debug_sync= 'now wait_for xa_detach';
|
||||
set debug_sync= 'now signal close wait_for xa_detach';
|
||||
xa commit 'committed_later';
|
||||
|
||||
|
||||
@ -1906,11 +1906,11 @@ insert into t values (4), (3);
|
||||
insert into t values (5);
|
||||
xa end 'x1';
|
||||
xa prepare 'x1';
|
||||
set debug_sync= 'THD_cleanup_after_trans_cleanup signal xa_detach';
|
||||
set debug_sync= 'thread_end signal xa_detach wait_for close';
|
||||
--disconnect con1
|
||||
|
||||
--connection con2
|
||||
set debug_sync= 'now wait_for xa_detach';
|
||||
set debug_sync= 'now signal close wait_for xa_detach';
|
||||
xa commit 'x1';
|
||||
set debug_sync= 'now signal go';
|
||||
--connection default
|
||||
|
Reference in New Issue
Block a user