Fixed sequence.gtid

This commit is contained in:
Monty 2017-07-01 17:21:02 +03:00 committed by Sergei Golubchik
parent 9e1cc831f2
commit 52a1e4d613
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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