mirror of
https://github.com/MariaDB/server.git
synced 2025-10-25 18:38:00 +03:00
WL#2511 - Add a new table to the Information Schema for TABLESPACE's
Implemented a new INFORMATION_SCHEMA table, which is intended to provide information about tablespaces. mysql-test/r/information_schema.result: Updated test result according to WL#2511. With this WL I_S has new TABLESPACES schema. mysql-test/r/information_schema_db.result: Updated test result according to WL#2511. With this WL I_S has new TABLESPACES schema. mysql-test/r/mysqlshow.result: Updated test result according to WL#2511. With this WL I_S has new TABLESPACES schema. mysql-test/suite/funcs_1/r/is_columns_is.result: Updated test result according to WL#2511. With this WL I_S has new TABLESPACES schema. mysql-test/suite/funcs_1/r/is_tables_is.result: Updated test result according to WL#2511. With this WL I_S has new TABLESPACES schema. sql/handler.h: Added SCH_TABLESPACES to enum_schema_tables. sql/mysql_priv.h: Added human readable definitions for I_S.TABLESPACES field identifiers. sql/sql_show.cc: Added I_S.TABLESPACES schema. The code which handles I_S.FILES is capable to handle I_S.TABLESPACES as well. Thus we reuse this code and let functions/variables have more generic names.
This commit is contained in:
@@ -2458,6 +2458,17 @@ inline void kill_delayed_threads(void) {}
|
||||
#define IS_FILES_CHECKSUM 35
|
||||
#define IS_FILES_STATUS 36
|
||||
#define IS_FILES_EXTRA 37
|
||||
|
||||
#define IS_TABLESPACES_TABLESPACE_NAME 0
|
||||
#define IS_TABLESPACES_ENGINE 1
|
||||
#define IS_TABLESPACES_TABLESPACE_TYPE 2
|
||||
#define IS_TABLESPACES_LOGFILE_GROUP_NAME 3
|
||||
#define IS_TABLESPACES_EXTENT_SIZE 4
|
||||
#define IS_TABLESPACES_AUTOEXTEND_SIZE 5
|
||||
#define IS_TABLESPACES_MAXIMUM_SIZE 6
|
||||
#define IS_TABLESPACES_NODEGROUP_ID 7
|
||||
#define IS_TABLESPACES_TABLESPACE_COMMENT 8
|
||||
|
||||
void init_fill_schema_files_row(TABLE* table);
|
||||
bool schema_table_store_record(THD *thd, TABLE *table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user