Skip to content

Commit 238c639

Browse files
AliSQLAliSQL
authored andcommitted
[feature] Issue: #45 Support for INVISIBLE indexes
This feature is ported from upstream 8.0. As 8.0 introduces Data Dictionary which substitute metadata files in server layer used in previous version(such as frm) , so there are some subtle differences. 1. we store index visibility info in frm 2. we use the HA_SORT_ALLOWS_SAME flag, which was not stored in frm before, in frm to indicate HA_INVISIBLE_KEY, so that we don't need to expand frm format, and compatibility is held.
1 parent c586f14 commit 238c639

86 files changed

Lines changed: 3005 additions & 588 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/my_base.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ enum ha_base_keytype {
260260
#define HA_SPATIAL 1024 /* For spatial search */
261261
#define HA_NULL_ARE_EQUAL 2048 /* NULL in key are cmp as equal */
262262
#define HA_GENERATED_KEY 8192 /* Automaticly generated key */
263+
#define HA_INVISIBLE_KEY (1<<30) /* This key is visible */
263264
#define HA_CLUSTERING (1<<31) /* TokuDB CLUSTERING key */
264265

265266
/* The combination of the above can be used for key type comparison. */

0 commit comments

Comments
 (0)