mirror of
https://github.com/MariaDB/server.git
synced 2025-12-04 17:23:46 +03:00
Remove usage of deprecated variable storage_engine. It was deprecated in 5.5 but it never issued a deprecation warning. Make it issue a warning in 10.5.1. Replaced with default_storage_engine.
22 lines
750 B
Plaintext
22 lines
750 B
Plaintext
--source include/have_innodb.inc
|
|
|
|
SET SESSION DEFAULT_STORAGE_ENGINE='InnoDB';
|
|
|
|
set @save_optimizer_switch_for_stat_tables_test=@@optimizer_switch;
|
|
set optimizer_switch='extended_keys=on';
|
|
|
|
set @innodb_stats_persistent_save= @@innodb_stats_persistent;
|
|
set @innodb_stats_persistent_sample_pages_save=
|
|
@@innodb_stats_persistent_sample_pages;
|
|
|
|
set global innodb_stats_persistent= 1;
|
|
set global innodb_stats_persistent_sample_pages=100;
|
|
--source stat_tables.test
|
|
set global innodb_stats_persistent= @innodb_stats_persistent_save;
|
|
set global innodb_stats_persistent_sample_pages=
|
|
@innodb_stats_persistent_sample_pages_save;
|
|
|
|
set optimizer_switch=@save_optimizer_switch_for_stat_tables_test;
|
|
|
|
SET SESSION DEFAULT_STORAGE_ENGINE=DEFAULT;
|