diff options
author | Monty <monty@mariadb.org> | 2019-08-08 23:04:05 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-08-23 11:26:04 +0200 |
commit | 6c50875a380aabb9da8926b785524e813e98a82d (patch) | |
tree | 8ce40297412f1bcd62830f4e52e308d9f4c8ea57 /include/myisam.h | |
parent | afe969ba05faece41fdef1275e9b9c510081805b (diff) | |
download | mariadb-git-6c50875a380aabb9da8926b785524e813e98a82d.tar.gz |
MDEV-20279 Increase Aria index length limit
Limit increased from 1000 to 2000.
Avoiding stack overflow by only storing keys and pages on the stack in
recursive functions if there is plenty of space on it.
Other things:
- Use less stack space for b-tree operations as we now only allocate as
much space as needed instead of always allocating HA_MAX_KEY_LENGTH.
- Replaced most usage of my_safe_alloca() in Aria with the stack_alloc
interface.
- Moved my_setstacksize() to mysys/my_pthread.c
Diffstat (limited to 'include/myisam.h')
-rw-r--r-- | include/myisam.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/myisam.h b/include/myisam.h index 216f041c8a9..d283712a1e0 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -309,6 +309,8 @@ extern int mi_make_backup_of_index(struct st_myisam_info *info, #define MYISAMCHK_VERIFY 2 /* Verify, run repair if failure */ typedef uint mi_bit_type; +typedef struct st_sort_key_blocks SORT_KEY_BLOCKS; +typedef struct st_sort_ftbuf SORT_FT_BUF; typedef struct st_mi_bit_buff { /* Used for packing of record */ |