diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-03-13 08:07:02 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-03-13 08:07:02 +0200 |
commit | 2e8b0c56a0f78508e62d1527eda2d7c3d9ebdf9a (patch) | |
tree | b8d8ae5d355932d4198881b4d32e0ef478501b2b /sql/sql_time.cc | |
parent | 47382a2f8c8a6ddd9a363963fcdc75c4eb6a6583 (diff) | |
download | mariadb-git-2e8b0c56a0f78508e62d1527eda2d7c3d9ebdf9a.tar.gz |
MDEV-21933 INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES accesses SYS_DATAFILES
All tablespace metadata is buffered in fil_system. There is a LRU
mechanism, but that only controls the opening and closing of
fil_node_t::handle.
It is much more efficient and less error-prone to access data file names
by looking up the fil_space_t object rather than by essentially joining
each row with an access to SYS_DATAFILES via the InnoDB internal SQL parser.
dict_get_first_path(): Declare static. The function may only be needed
when loading or updating the data dictionary. Also, change a condition
in order to avoid a bogus GCC 10 -Wstringop-overflow warning for
mem_strdupl() about len==ULINT_UNDEFINED.
i_s_sys_tablespaces_fill_table(): Do not access other InnoDB internal
dictionary tables than SYS_TABLESPACES.
Diffstat (limited to 'sql/sql_time.cc')
0 files changed, 0 insertions, 0 deletions