mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
48892844a9
Change to use remove_file instead of 'system rm' in a lot of tests. (Should fix some windows test problems) Removed memory leak in mysql_test if sync_with_master fails. Do not terminate ndb_cluster_binary_log before the util thread has finnished. This should fix a shutdown bug where a thread is accessing injector_mutex after it's freed. Patch may fix Bug#27622 "mysqld shutdown, util thread continues, while binlog thread exits" client/mysqltest.c: Added missing 'mysql_free_result' (fixed confusing memory leak when sync_with_master fails)ug mysql-test/mysql-test-run.pl: Add the test case name to the instance manager log files mysql-test/r/rpl_log_pos.result: Made test more portable (for powermac) mysql-test/t/disabled.def: Disabled im_life_cycle (added bug#27851) mysql-test/t/myisam-system.test: Use remove_file instead of "system rm" mysql-test/t/ndb_autodiscover.test: Use remove_file instead of "system rm" mysql-test/t/ndb_loaddatalocal.test: Use remove_file instead of "system rm" mysql-test/t/rpl_loaddatalocal.test: Use remove_file instead of "system rm" mysql-test/t/rpl_log_pos.test: Made test more portable (for powermac) mysql-test/t/rpl_misc_functions.test: Use remove_file instead of "system rm" mysql-test/t/rpl_rbr_to_sbr.test: Use remove_file instead of "system rm" mysql-test/t/rpl_row_NOW.test: Use remove_file instead of "system rm" mysql-test/t/rpl_row_sp001.test: Use remove_file instead of "system rm" mysql-test/t/rpl_row_sp011.test: Use remove_file instead of "system rm" mysql-test/t/show_check.test: Use remove_file instead of "system rm" mysys/my_alloc.c: Don't return on zero argument, as this may hide other errors server-tools/instance-manager/log.cc: Log errors to both stdout and stderr (to know in which context we got the error) server-tools/instance-manager/thread_registry.cc: Log error before common assert (to know in which context we fail) sql/ha_ndbcluster.cc: Do not terminate ndb_cluster_binary_log before the util thread has finnished. sql/ha_ndbcluster.h: Do not terminate ndb_cluster_binary_log before the util thread has finnished. sql/ha_ndbcluster_binlog.cc: Do not terminate ndb_cluster_binary_log before the util thread has finnished. sql-common/client.c: Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc)
70 lines
2.5 KiB
Text
70 lines
2.5 KiB
Text
-- source include/have_ndb.inc
|
|
-- source include/not_embedded.inc
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
create table t1(a int) engine=myisam;
|
|
let $1=10000;
|
|
disable_query_log;
|
|
set SQL_LOG_BIN=0;
|
|
while ($1)
|
|
{
|
|
insert into t1 values(1);
|
|
dec $1;
|
|
}
|
|
set SQL_LOG_BIN=1;
|
|
enable_query_log;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval select * into outfile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
#This will generate a 20KB file, now test LOAD DATA LOCAL
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=ndb;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval load data local infile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
select count(*) from t1;
|
|
--remove_file $MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (2), (2), (3);
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval select * into outfile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval load data local infile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
--remove_file $MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile
|
|
select * from t1 order by a;
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (1), (2), (3);
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval select * into outfile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval load data local infile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
--remove_file $MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile
|
|
select * from t1 order by a;
|
|
drop table t1;
|
|
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (2), (3), (3);
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval select * into outfile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
|
|
create table t1(a int primary key) engine=ndb;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
eval load data local infile '$MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
--remove_file $MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile
|
|
select * from t1 order by a;
|
|
drop table t1;
|
|
|
|
# End of 4.1 tests
|