mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22726: Add check that one can't change general or slow log to a
transactional engine
This commit is contained in:
@ -269,6 +269,14 @@ alter table mysql.slow_log engine=memory;
|
||||
#alter table mysql.slow_log engine=blackhole;
|
||||
set storage_engine= @save_storage_engine;
|
||||
|
||||
# Make sure only non-transactional Aria table can be used for logging
|
||||
--error ER_TRANSACTIONAL_ARIA_LOG_ENGINE
|
||||
ALTER TABLE mysql.general_log ENGINE=Aria;
|
||||
ALTER TABLE mysql.general_log ENGINE=Aria transactional = 0;
|
||||
--error ER_TRANSACTIONAL_ARIA_LOG_ENGINE
|
||||
ALTER TABLE mysql.slow_log ENGINE=Aria;
|
||||
ALTER TABLE mysql.slow_log ENGINE=Aria transactional = 0;
|
||||
|
||||
drop table mysql.slow_log;
|
||||
drop table mysql.general_log;
|
||||
|
||||
|
Reference in New Issue
Block a user