mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
2c4fa340cc
Fixed bugs in my last changeset that made MySQL hard to compile. Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables. Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions Extended my_chsize() to allow one to specify a filler character. Extend vio_blocking to return the old state (This made some usage of this function much simpler) Added testing for some functions that they caller have got the required mutexes before calling the function. Use setrlimit() to ensure that we can write core file if one specifies --core-file. Added --slave-compressed-protocol Made 2 the minimum length for ft_min_word_len Added variables foreign_key_checks & unique_checks. Less logging from replication code (if not started with --log-warnings) Changed that SHOW INNODB STATUS requre the SUPER privilege More DBUG statements and a lot of new code comments
24 lines
649 B
Text
24 lines
649 B
Text
#this one assumes we are ignoring updates on table foo, but doing
|
|
#the ones on bar
|
|
source include/master-slave.inc;
|
|
connection slave;
|
|
drop table if exists foo;
|
|
create table foo (n int);
|
|
insert into foo values(4);
|
|
connection master;
|
|
drop table if exists foo;
|
|
create table foo (s char(20));
|
|
load data infile '../../std_data/words.dat' into table foo;
|
|
insert into foo values('five');
|
|
drop table if exists bar;
|
|
create table bar (m int);
|
|
insert into bar values(15);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select foo.n,bar.m from foo,bar;
|
|
connection master;
|
|
drop table if exists bar,foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|