summaryrefslogtreecommitdiff
path: root/include/maria.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2019-08-08 23:04:05 +0300
committerSergei Golubchik <serg@mariadb.org>2019-08-23 11:26:04 +0200
commit6c50875a380aabb9da8926b785524e813e98a82d (patch)
tree8ce40297412f1bcd62830f4e52e308d9f4c8ea57 /include/maria.h
parentafe969ba05faece41fdef1275e9b9c510081805b (diff)
downloadmariadb-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/maria.h')
-rw-r--r--include/maria.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/maria.h b/include/maria.h
index 60b981fd1a9..bb3ca905eab 100644
--- a/include/maria.h
+++ b/include/maria.h
@@ -186,6 +186,7 @@ typedef struct st_maria_keydef /* Key definition with open & info */
uint16 keylength; /* Tot length of keyparts (auto) */
uint16 minlength; /* min length of (packed) key (auto) */
uint16 maxlength; /* max length of (packed) key (auto) */
+ uint16 max_store_length; /* Size to store key + overhead */
uint32 write_comp_flag; /* compare flag for write key (auto) */
uint32 version; /* For concurrent read/write */
uint32 ftkey_nr; /* full-text index number */