summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-08-09 19:57:14 +0500
committerunknown <gluh@mysql.com/eagle.(none)>2007-08-09 19:57:14 +0500
commit026653a6e3152451bc749205cee849778ee962ef (patch)
tree4e2924e6b871e957a567b8679240099511a69306 /sql/unireg.h
parentf6b9135668a0e6ea4224ef3afbc1f775b2a97dd5 (diff)
downloadmariadb-git-026653a6e3152451bc749205cee849778ee962ef.tar.gz
fill_schema_table_from_frm() function uses get_table_share() function
which is faster than open_table_def() func. This patch fixes the porblem with information_schema test timeout. sql/unireg.h: added description of flags
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h39
1 files changed, 34 insertions, 5 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index 232ea5e70e7..c4e53160d74 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -153,11 +153,40 @@
#define OPEN_VIEW 8192 /* Allow open on view */
#define OPEN_VIEW_NO_PARSE 16384 /* Open frm only if it's a view,
but do not parse view itself */
-#define OPEN_FRM_FILE_ONLY 32768 /* Open frm file only */
-#define OPEN_TABLE_ONLY OPEN_FRM_FILE_ONLY*2 /* Open view only */
-#define OPEN_VIEW_ONLY OPEN_TABLE_ONLY*2 /* Open table only */
-#define OPEN_TABLE_FROM_SHARE OPEN_VIEW_ONLY*2 /* For I_S tables*/
-#define OPTIMIZE_I_S_TABLE OPEN_TABLE_FROM_SHARE*2 /* For I_S tables*/
+/*
+ This flag is used in function get_all_tables() which fills
+ I_S tables with data which are retrieved from frm files and storage engine
+ The flag means that we need to open FRM file only to get necessary data.
+*/
+#define OPEN_FRM_FILE_ONLY 32768
+/*
+ This flag is used in function get_all_tables() which fills
+ I_S tables with data which are retrieved from frm files and storage engine
+ The flag means that we need to process tables only to get necessary data.
+ Views are not processed.
+*/
+#define OPEN_TABLE_ONLY OPEN_FRM_FILE_ONLY*2
+/*
+ This flag is used in function get_all_tables() which fills
+ I_S tables with data which are retrieved from frm files and storage engine
+ The flag means that we need to process views only to get necessary data.
+ Tables are not processed.
+*/
+#define OPEN_VIEW_ONLY OPEN_TABLE_ONLY*2
+/*
+ This flag is used in function get_all_tables() which fills
+ I_S tables with data which are retrieved from frm files and storage engine.
+ The flag means that we need to open a view using
+ open_normal_and_derived_tables() function.
+*/
+#define OPEN_VIEW_FULL OPEN_VIEW_ONLY*2
+/*
+ This flag is used in function get_all_tables() which fills
+ I_S tables with data which are retrieved from frm files and storage engine.
+ The flag means that I_S table uses optimization algorithm.
+*/
+#define OPTIMIZE_I_S_TABLE OPEN_VIEW_FULL*2
+
#define SC_INFO_LENGTH 4 /* Form format constant */
#define TE_INFO_LENGTH 3
#define MTYP_NOEMPTY_BIT 128