Commit 0bde52e6 authored by Jan Lindström's avatar Jan Lindström

MDEV-24164 : Galera test failure on galera_fk_cascade_delete

Add wait_conditions.
parent 9b30212f
...@@ -40,11 +40,19 @@ set wsrep_sync_wait=0; ...@@ -40,11 +40,19 @@ set wsrep_sync_wait=0;
--let $wait_condition = SELECT COUNT(*) = 2 FROM child; --let $wait_condition = SELECT COUNT(*) = 2 FROM child;
--source include/wait_condition.inc --source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 2 FROM parent;
--source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 2 FROM grandparent;
--source include/wait_condition.inc
DELETE FROM grandparent WHERE id = 1; DELETE FROM grandparent WHERE id = 1;
--connection node_1 --connection node_1
--let $wait_condition = SELECT COUNT(*) = 1 FROM child; --let $wait_condition = SELECT COUNT(*) = 1 FROM child;
--source include/wait_condition.inc --source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 1 FROM parent;
--source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 1 FROM grandparent;
--source include/wait_condition.inc
SELECT COUNT(*), COUNT(*) = 0 FROM parent WHERE grandparent_id = 1; SELECT COUNT(*), COUNT(*) = 0 FROM parent WHERE grandparent_id = 1;
SELECT COUNT(*), COUNT(*) = 0 FROM child WHERE parent_id = 1; SELECT COUNT(*), COUNT(*) = 0 FROM child WHERE parent_id = 1;
......
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