mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +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
47 lines
1 KiB
Text
47 lines
1 KiB
Text
#
|
|
# Test forced timestamp
|
|
#
|
|
source include/master-slave.inc;
|
|
|
|
# Don't log table creating to the slave as we want to test LOAD TABLE
|
|
set SQL_LOG_BIN=0,timestamp=200006;
|
|
drop table if exists t1;
|
|
create table t1(t timestamp not null,a char(1));
|
|
insert into t1 ( a) values ('F');
|
|
select unix_timestamp(t) from t1;
|
|
connection slave;
|
|
drop table if exists t1;
|
|
load table t1 from master;
|
|
select unix_timestamp(t) from t1;
|
|
|
|
# Delete the created table on master and slave
|
|
connection master;
|
|
set SQL_LOG_BIN=1,timestamp=default;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
connection master;
|
|
|
|
#
|
|
# Test copying table with checksum
|
|
#
|
|
|
|
# Don't log table creating to the slave as we want to test LOAD TABLE
|
|
set SQL_LOG_BIN=0;
|
|
|
|
CREATE TABLE t1 (
|
|
a int not null
|
|
) TYPE=MyISAM MAX_ROWS=4000 CHECKSUM=1;
|
|
INSERT INTO t1 VALUES (1);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
load table t1 from master;
|
|
check table t1;
|
|
drop table t1;
|
|
connection master;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|