mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
d6d63f4844
Make all system tables in mysql directory of type engine=Aria Privilege tables are using transactional=1 Statistical tables are using transactional=0, to allow them to be quickly updated with low overhead. Help tables are also using transactional=0 as these are only updated at init time. Other changes: - Aria store engine is now a required engine - Update comment for Aria tables to reflect their new usage - Fixed that _ma_reset_trn_for_table() removes unlocked table from transaction table list. This was needed to allow one to lock and unlock system tables separately from other tables, for example when reading a procedure from mysql.proc - Don't give a warning when using transactional=1 for engines that is using transactions. This is both logical and also to avoid warnings/errors when doing an alter of a privilege table to InnoDB. - Don't abort on warnings from ALTER TABLE for changes that would be accepted by CREATE TABLE. - New created Aria transactional tables are marked as not movable (as they include create_rename_lsn). - bootstrap.test was changed to kill orignal server, as one can't anymore have two servers started at same time on same data directory and data files. - Disable maria.small_blocksize as one can't anymore change aria block size after system tables are created. - Speed up creation of help tables by using lock tables. - wsrep_sst_resync now also copies Aria redo logs.
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# Tests for PERFORMANCE_SCHEMA
|
|
# Check error handling for invalid server start options
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
|
|
--source include/kill_mysqld.inc
|
|
|
|
let $outfile= $MYSQLTEST_VARDIR/tmp/bad_option_5.txt;
|
|
--disable_warnings
|
|
--error 0,1
|
|
--remove_file $outfile
|
|
--enable_warnings
|
|
--error 2
|
|
--exec $MYSQLD_BOOTSTRAP_CMD --loose-console -aXbroken > $outfile 2>&1
|
|
|
|
# -aXbroken should be parsed as -a -Xbroken, or --ansi -Xbroken,
|
|
# therefore the -X option is what the server should complain about
|
|
|
|
perl;
|
|
use strict;
|
|
use warnings;
|
|
my $fname= "$ENV{'MYSQLTEST_VARDIR'}/tmp/bad_option_5.txt";
|
|
open(FILE, "<", $fname) or die;
|
|
my @lines= <FILE>;
|
|
# those must be in the file for the test to pass
|
|
my @patterns=
|
|
("unknown option '-X'",
|
|
"Aborting");
|
|
foreach my $one_line (@lines)
|
|
{
|
|
foreach my $one_pattern (@patterns)
|
|
{
|
|
# print pattern, not line, to get a stable output
|
|
print "Found: $one_pattern\n" if ($one_line =~ /$one_pattern/);
|
|
}
|
|
}
|
|
close FILE;
|
|
EOF
|
|
--remove_file $outfile
|
|
|
|
--source include/start_mysqld.inc
|