summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorStepan Patryshev <stepan.patryshev@mariadb.com>2020-12-30 21:13:17 +0200
committerStepan Patryshev <stepan.patryshev@mariadb.com>2021-01-04 15:12:04 +0200
commit9de9e0c7817d3efb040e3d25ea305830dd36ee8e (patch)
tree69af31b656b491a22b7602ce3f62908a549407c3 /mysql-test
parentcd529ae8ef1ac1c46396d4cba3fcdc336cffbd96 (diff)
downloadmariadb-git-9de9e0c7817d3efb040e3d25ea305830dd36ee8e.tar.gz
MDEV-24447: Added wait condition to make sure table t1 is replicated to node_2.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/suite/galera/t/galera_toi_lock_shared.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/t/galera_toi_lock_shared.test b/mysql-test/suite/galera/t/galera_toi_lock_shared.test
index 6857a0e08ca..6b7feec6031 100644
--- a/mysql-test/suite/galera/t/galera_toi_lock_shared.test
+++ b/mysql-test/suite/galera/t/galera_toi_lock_shared.test
@@ -10,6 +10,9 @@ CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
--connection node_2
+--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t1';
+--source include/wait_condition.inc
+
ALTER TABLE t1 ADD COLUMN f2 INTEGER, LOCK=SHARED;
--connection node_1