summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl000016.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/rpl000016.test')
-rw-r--r--mysql-test/t/rpl000016.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/rpl000016.test b/mysql-test/t/rpl000016.test
index a12fde7eb4c..be694b0e434 100644
--- a/mysql-test/t/rpl000016.test
+++ b/mysql-test/t/rpl000016.test
@@ -85,7 +85,11 @@ slave stop;
slave start;
sync_with_master;
show slave status;
+# because of concurrent insert, the table may not be up to date
+# if we do not lock
+lock tables t3 read;
select count(*) from t3 where n = 4;
+unlock tables;
#clean up
connection master;
drop table if exists t1,t2,t3;