Commit 52a1e4d6 authored by Monty's avatar Monty Committed by Sergei Golubchik

Fixed sequence.gtid

parent 9e1cc831
...@@ -7,6 +7,7 @@ grant all on test.* to normal_2@'%' identified by 'pass'; ...@@ -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 s_db.* to normal_3@'%' identified by 'pass';
grant all on test.* to normal_4@'%' identified by 'pass'; grant all on test.* to normal_4@'%' identified by 'pass';
grant select on test.* to normal_5@'%' identified by 'pass'; grant select on test.* to normal_5@'%' identified by 'pass';
flush status;
connection slave; connection slave;
connect m_normal_1, 127.0.0.1, normal_1, pass, s_db, $MASTER_MYPORT; 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; connect m_normal_2, 127.0.0.1, normal_2, pass, test, $MASTER_MYPORT;
...@@ -231,6 +232,8 @@ read_only OFF ...@@ -231,6 +232,8 @@ read_only OFF
select next value for s_db.s1; select next value for s_db.s1;
next value for s_db.s1 next value for s_db.s1
1 1
connection master;
connection slave;
connection s_normal_3; connection s_normal_3;
show global variables like 'read_only'; show global variables like 'read_only';
Variable_name Value Variable_name Value
......
...@@ -13,6 +13,7 @@ grant all on test.* to normal_2@'%' identified by 'pass'; ...@@ -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 s_db.* to normal_3@'%' identified by 'pass';
grant all on test.* to normal_4@'%' identified by 'pass'; grant all on test.* to normal_4@'%' identified by 'pass';
grant select on test.* to normal_5@'%' identified by 'pass'; grant select on test.* to normal_5@'%' identified by 'pass';
flush status;
--sync_slave_with_master --sync_slave_with_master
...@@ -225,6 +226,9 @@ create sequence s_db.s1; ...@@ -225,6 +226,9 @@ create sequence s_db.s1;
show global variables like 'read_only'; show global variables like 'read_only';
select next value for s_db.s1; select next value for s_db.s1;
connection master;
--sync_slave_with_master
connection s_normal_3; connection s_normal_3;
show global variables like 'read_only'; show global variables like 'read_only';
--error ER_OPTION_PREVENTS_STATEMENT --error ER_OPTION_PREVENTS_STATEMENT
......
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