mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-9077 - port sys schema to MariaDB
- Innodb is not always available, which means t is not always possible to use innodb system variables, or innodb information schema tables. Thus creation of objects that use Innodb information_schema is enclosed into BEGIN NOT ATOMIC blocks with dummy SQLEXCEPTION handler. - sys_config table uses Aria, just like other system tables. - several tables that exist in MySQL, do not exist in MariaDB performance_schema.replication_applier_status, mysql.slave_master_info, mysql.slave_relay_log_info
This commit is contained in:
@ -128,7 +128,7 @@ BEGIN
|
||||
-- in the setup_actors table were enabled.
|
||||
SELECT CONCAT('\'', user, '\'@\'', host, '\'') AS enabled_users
|
||||
FROM performance_schema.setup_actors
|
||||
/*!50706 WHERE enabled = 'YES' */
|
||||
WHERE enabled = 'YES'
|
||||
ORDER BY enabled_users;
|
||||
|
||||
SELECT object_type,
|
||||
@ -150,7 +150,7 @@ BEGIN
|
||||
REPLACE(name, 'thread/', '')) AS enabled_threads,
|
||||
TYPE AS thread_type
|
||||
FROM performance_schema.threads
|
||||
WHERE INSTRUMENTED = 'YES'
|
||||
WHERE INSTRUMENTED = 'YES' AND name <> 'thread/innodb/thread_pool_thread'
|
||||
ORDER BY enabled_threads;
|
||||
END IF;
|
||||
|
||||
|
Reference in New Issue
Block a user