mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
e709eb9bf7
# Conflicts: # mysql-test/suite/galera/r/MW-388.result # mysql-test/suite/galera/t/MW-388.test # mysql-test/suite/innodb/r/truncate_inject.result # mysql-test/suite/innodb/t/truncate_inject.test # mysql-test/suite/rpl/r/rpl_stop_slave.result # mysql-test/suite/rpl/t/rpl_stop_slave.test # sql/sp_head.cc # sql/sp_head.h # sql/sql_lex.cc # sql/sql_yacc.yy # storage/xtradb/buf/buf0dblwr.cc
41 lines
832 B
Text
41 lines
832 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
#
|
|
# MDEV-6409 CREATE VIEW replication problem if error occurs in mysql_register_view
|
|
#
|
|
# Check the bug where if an error occurs in mysql_register_view the view
|
|
# is still replicated to the slave
|
|
#
|
|
connection master;
|
|
create table t1 (a int);
|
|
insert into t1 values (1);
|
|
create view v1 as select a from t1;
|
|
insert into v1 values (2);
|
|
select * from v1 order by a;
|
|
a
|
|
1
|
|
2
|
|
connection slave;
|
|
show tables;
|
|
Tables_in_test
|
|
t1
|
|
v1
|
|
connection master;
|
|
SET @saved_dbug = @@SESSION.debug_dbug;
|
|
set @@debug_dbug="d,simulate_register_view_failure";
|
|
CREATE VIEW v2 as SELECT * FROM t1;
|
|
ERROR HY000: Out of memory.
|
|
show tables;
|
|
Tables_in_test
|
|
t1
|
|
v1
|
|
connection slave;
|
|
show tables;
|
|
Tables_in_test
|
|
t1
|
|
v1
|
|
connection master;
|
|
DROP VIEW IF EXISTS v1;
|
|
DROP TABLE t1;
|
|
SET debug_dbug= @saved_dbug;
|
|
include/rpl_end.inc
|