mirror of
https://github.com/MariaDB/server.git
synced 2025-08-15 19:22:41 +03:00
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.
20 lines
930 B
Plaintext
20 lines
930 B
Plaintext
alter table mysql.plugin engine=myisam;
|
|
Warnings:
|
|
Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=1'
|
|
set @old_dbug=@@debug_dbug;
|
|
call mtr.add_suppression("Index for table.*mysql.plugin.MYI");
|
|
call mtr.add_suppression("Index for table 'plugin' is corrupt; try to repair it");
|
|
SET debug_dbug='+d,myisam_pretend_crashed_table_on_usage';
|
|
install plugin audit_null soname 'adt_null';
|
|
ERROR HY000: Index for table './mysql/plugin.MYI' is corrupt; try to repair it
|
|
SET debug_dbug=@old_dbug;
|
|
install plugin audit_null soname 'adt_null';
|
|
SET debug_dbug='+d,myisam_pretend_crashed_table_on_usage';
|
|
uninstall plugin audit_null;
|
|
ERROR HY000: Index for table './mysql/plugin.MYI' is corrupt; try to repair it
|
|
SET debug_dbug=@old_dbug;
|
|
uninstall plugin audit_null;
|
|
ERROR 42000: PLUGIN audit_null does not exist
|
|
delete from mysql.plugin where name='audit_null';
|
|
alter table mysql.plugin engine=aria;
|