mirror of
https://github.com/MariaDB/server.git
synced 2025-09-08 06:27:57 +03:00

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
31 lines
612 B
Plaintext
31 lines
612 B
Plaintext
source include/master-slave.inc;
|
|
|
|
#first, make sure the slave has had enough time to register
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|
|
#discover slaves
|
|
connection master;
|
|
rpl_probe;
|
|
|
|
#turn on master/slave query direction auto-magic
|
|
enable_rpl_parse;
|
|
drop table if exists t1;
|
|
create table t1 ( n int);
|
|
insert into t1 values (1),(2),(3),(4);
|
|
disable_rpl_parse;
|
|
save_master_pos;
|
|
enable_rpl_parse;
|
|
connection slave;
|
|
sync_with_master;
|
|
insert into t1 values(5);
|
|
connection master;
|
|
select * from t1;
|
|
select * from t1;
|
|
disable_rpl_parse;
|
|
select * from t1;
|
|
connection slave;
|
|
select * from t1;
|
|
drop table t1;
|