diff --git a/mysql-test/suite/sql_sequence/replication.result b/mysql-test/suite/sql_sequence/replication.result index de084410c95..4c1508bad93 100644 --- a/mysql-test/suite/sql_sequence/replication.result +++ b/mysql-test/suite/sql_sequence/replication.result @@ -341,6 +341,8 @@ read_only OFF select * from s_db.s1; next_value min_value max_value start increment cache cycle round 1 1 9223372036854775806 1 1 1000 0 0 +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/replication.test b/mysql-test/suite/sql_sequence/replication.test index f49ca5021f1..c1a28a9b5c4 100644 --- a/mysql-test/suite/sql_sequence/replication.test +++ b/mysql-test/suite/sql_sequence/replication.test @@ -324,7 +324,10 @@ create sequence s_db.s1; show global variables like 'read_only'; select * from s_db.s1; +connection master; +--sync_slave_with_master connection s_normal_3; + show global variables like 'read_only'; --error ER_OPTION_PREVENTS_STATEMENT select next value for s_db.s1;