diff --git a/mysql-test/suite/sql_sequence/gtid.result b/mysql-test/suite/sql_sequence/gtid.result index 4c0a4e0e8fc..996b7ac906d 100644 --- a/mysql-test/suite/sql_sequence/gtid.result +++ b/mysql-test/suite/sql_sequence/gtid.result @@ -7,6 +7,7 @@ grant all on test.* to normal_2@'%' identified by 'pass'; grant all on s_db.* to normal_3@'%' identified by 'pass'; grant all on test.* to normal_4@'%' identified by 'pass'; grant select on test.* to normal_5@'%' identified by 'pass'; +flush status; connection slave; connect m_normal_1, 127.0.0.1, normal_1, pass, s_db, $MASTER_MYPORT; connect m_normal_2, 127.0.0.1, normal_2, pass, test, $MASTER_MYPORT; @@ -231,6 +232,8 @@ read_only OFF select next value for s_db.s1; next value for s_db.s1 1 +connection master; +connection slave; connection s_normal_3; show global variables like 'read_only'; Variable_name Value diff --git a/mysql-test/suite/sql_sequence/gtid.test b/mysql-test/suite/sql_sequence/gtid.test index a354062a05c..14f64d584b5 100644 --- a/mysql-test/suite/sql_sequence/gtid.test +++ b/mysql-test/suite/sql_sequence/gtid.test @@ -13,6 +13,7 @@ grant all on test.* to normal_2@'%' identified by 'pass'; grant all on s_db.* to normal_3@'%' identified by 'pass'; grant all on test.* to normal_4@'%' identified by 'pass'; grant select on test.* to normal_5@'%' identified by 'pass'; +flush status; --sync_slave_with_master @@ -225,6 +226,9 @@ create sequence s_db.s1; show global variables like 'read_only'; select next value for s_db.s1; +connection master; +--sync_slave_with_master + connection s_normal_3; show global variables like 'read_only'; --error ER_OPTION_PREVENTS_STATEMENT