Skip to content
Permalink
Browse files
MDEV-29479 I_S.INNODB_SYS_TABLESPACES doesn't have temporary tablespa…
…ce information

- innodb_sys_tablespaces view in information schema displays temporary
tablespace information too.
  • Loading branch information
Thirunarayanan committed Sep 14, 2022
1 parent 5af7149 commit d7aefc0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
@@ -181,3 +181,10 @@ test/parent 1 2
DROP TABLE child;
DROP TABLE parent;
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;

DROP TABLE parent;
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(
mutex_exit(&dict_sys->mutex);
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);
}
/*******************************************************************//**

0 comments on commit d7aefc0

Please sign in to comment.