Skip to content

Commit

Permalink
MDEV-29479 I_S.INNODB_SYS_TABLESPACES doesn't have temporary tablespa…
Browse files Browse the repository at this point in the history
…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.
7 changes: 7 additions & 0 deletions mysql-test/suite/innodb/r/innodb-system-table-view.result
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions mysql-test/suite/innodb/t/innodb-system-table-view.test
Original file line number Diff line number Diff line change
Expand Up @@ -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';
5 changes: 5 additions & 0 deletions storage/innobase/handler/i_s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
/*******************************************************************//**
Expand Down

0 comments on commit d7aefc0

Please sign in to comment.