mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-16421 Make system tables crash safe
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.
This commit is contained in:
@ -190,28 +190,28 @@ CREATE DATABASE mysql_test;
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
--let $proc_frm = $MYSQLD_DATADIR/mysql/proc.frm
|
||||
--let $proc_MYD = $MYSQLD_DATADIR/mysql/proc.MYD
|
||||
--let $proc_MYI = $MYSQLD_DATADIR/mysql/proc.MYI
|
||||
--let $proc_MAD = $MYSQLD_DATADIR/mysql/proc.MAD
|
||||
--let $proc_MAI = $MYSQLD_DATADIR/mysql/proc.MAI
|
||||
|
||||
--let $copy_of_proc_frm = $MYSQLTEST_VARDIR/tmp/bug29958.copy.frm
|
||||
--let $copy_of_proc_MYD = $MYSQLTEST_VARDIR/tmp/bug29958.copy.MYD
|
||||
--let $copy_of_proc_MYI = $MYSQLTEST_VARDIR/tmp/bug29958.copy.MYI
|
||||
--let $copy_of_proc_MAD = $MYSQLTEST_VARDIR/tmp/bug29958.copy.MAD
|
||||
--let $copy_of_proc_MAI = $MYSQLTEST_VARDIR/tmp/bug29958.copy.MAI
|
||||
|
||||
--copy_file $proc_frm $copy_of_proc_frm
|
||||
--copy_file $proc_MYD $copy_of_proc_MYD
|
||||
--copy_file $proc_MYI $copy_of_proc_MYI
|
||||
--copy_file $proc_MAD $copy_of_proc_MAD
|
||||
--copy_file $proc_MAI $copy_of_proc_MAI
|
||||
|
||||
DROP TABLE mysql.proc;
|
||||
|
||||
DROP DATABASE mysql_test;
|
||||
|
||||
--copy_file $copy_of_proc_frm $proc_frm
|
||||
--copy_file $copy_of_proc_MYD $proc_MYD
|
||||
--copy_file $copy_of_proc_MYI $proc_MYI
|
||||
--copy_file $copy_of_proc_MAD $proc_MAD
|
||||
--copy_file $copy_of_proc_MAI $proc_MAI
|
||||
|
||||
--remove_file $copy_of_proc_frm
|
||||
--remove_file $copy_of_proc_MYD
|
||||
--remove_file $copy_of_proc_MYI
|
||||
--remove_file $copy_of_proc_MAD
|
||||
--remove_file $copy_of_proc_MAI
|
||||
|
||||
--echo
|
||||
--echo # --
|
||||
|
Reference in New Issue
Block a user