diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2014-06-25 16:46:42 +0400 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2014-06-25 16:46:42 +0400 |
commit | 424d5de89de907f37826ec8afb77769fe380d1e4 (patch) | |
tree | b12fc5dd3223c1ceb7c6ad91cbd8e444d3efc605 /sql/table.h | |
parent | 787ec317784d58ca00c0c8e772173c66c5145f50 (diff) | |
parent | b561a98a87c0326dce59eb49c1b4b8f31da21d1e (diff) | |
download | mariadb-git-424d5de89de907f37826ec8afb77769fe380d1e4.tar.gz |
Merge bb-10.1-explain-analyze into 10.1
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sql/table.h b/sql/table.h index 3ac75ec06e1..b57e9c7227d 100644 --- a/sql/table.h +++ b/sql/table.h @@ -1499,6 +1499,7 @@ typedef struct st_schema_table uint i_s_requested_object; /* the object we need to open(TABLE | VIEW) */ } ST_SCHEMA_TABLE; +class IS_table_read_plan; /* Types of derived tables. The ending part is a bitmap of phases that are @@ -2044,12 +2045,23 @@ struct TABLE_LIST /* TRUE <=> this table is a const one and was optimized away. */ bool optimized_away; + /* I_S: Flags to open_table (e.g. OPEN_TABLE_ONLY or OPEN_VIEW_ONLY) */ uint i_s_requested_object; - bool has_db_lookup_value; - bool has_table_lookup_value; + + /* + I_S: how to read the tables (SKIP_OPEN_TABLE/OPEN_FRM_ONLY/OPEN_FULL_TABLE) + */ uint table_open_method; + /* + I_S: where the schema table was filled + (this is a hack. The code should be able to figure out whether reading + from I_S should be done by create_sort_index() or by JOIN::exec.) + */ enum enum_schema_table_state schema_table_state; + /* Something like a "query plan" for reading INFORMATION_SCHEMA table */ + IS_table_read_plan *is_table_read_plan; + MDL_request mdl_request; #ifdef WITH_PARTITION_STORAGE_ENGINE |