summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2020-04-26 15:42:57 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2020-05-06 17:19:58 +0530
commit4539d3ea77fc5fde63f515a97bc679afd7b614c7 (patch)
tree4d3381ab3e1330af957b66541adccd388d8d0b73 /sql/table.h
parent8ad3c6154b90314980faf1cdd4c317c9bbf5f84c (diff)
downloadmariadb-git-bb-10.5-mdev7317.tar.gz
MDEV-7317: Make an index ignorable to the optimizerbb-10.5-mdev7317
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index d93f466077f..5e5bb2d43a8 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -684,6 +684,10 @@ struct TABLE_SHARE
Excludes keys disabled by ALTER TABLE ... DISABLE KEYS.
*/
key_map keys_in_use;
+
+ /* The set of ignored indexes for a table. */
+ key_map ignored_indexes;
+
key_map keys_for_keyread;
ha_rows min_rows, max_rows; /* create information */
ulong avg_row_length; /* create information */
@@ -1071,6 +1075,8 @@ struct TABLE_SHARE
void free_frm_image(const uchar *frm);
void set_overlapped_keys();
+ void set_ignored_indexes();
+ key_map usable_indexes(THD *thd);
};
/* not NULL, but cannot be dereferenced */