MDEV-29479 I_S.INNODB_SYS_TABLESPACES doesn't have temporary tablespace information

- innodb_sys_tablespaces view in information schema displays temporary
tablespace information too.
parent 5af7149f
...@@ -181,3 +181,10 @@ test/parent 1 2 ...@@ -181,3 +181,10 @@ test/parent 1 2
DROP TABLE child; DROP TABLE child;
DROP TABLE parent; DROP TABLE parent;
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency; SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
#
# MDEV-29479 I_S.INNODB_SYS_TABLESPACES doesn't have
# temporary tablespace information
#
SELECT SPACE FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES WHERE name like 'innodb_temporary';
SPACE
4294967294
...@@ -141,3 +141,9 @@ DROP TABLE child; ...@@ -141,3 +141,9 @@ DROP TABLE child;
DROP TABLE parent; DROP TABLE parent;
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency; SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
--echo #
--echo # MDEV-29479 I_S.INNODB_SYS_TABLESPACES doesn't have
--echo # temporary tablespace information
--echo #
SELECT SPACE FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES WHERE name like 'innodb_temporary';
...@@ -6824,6 +6824,11 @@ i_s_sys_tablespaces_fill_table( ...@@ -6824,6 +6824,11 @@ i_s_sys_tablespaces_fill_table(
mutex_exit(&dict_sys->mutex); mutex_exit(&dict_sys->mutex);
mem_heap_free(heap); mem_heap_free(heap);
i_s_dict_fill_sys_tablespaces(
thd, fil_system.temp_space->id,
fil_system.temp_space->name,
fil_system.temp_space->flags, tables->table);
DBUG_RETURN(0); DBUG_RETURN(0);
} }
/*******************************************************************//** /*******************************************************************//**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment