summaryrefslogtreecommitdiff
path: root/include/heap.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-01-14 19:49:45 +0100
committerunknown <serg@serg.mylan>2005-01-14 19:49:45 +0100
commitb7efd8174a9e46ae89337b0364f132a574dc6c2f (patch)
treefc8eed46069b12bdd227706a53e83c9c53c5633c /include/heap.h
parent9edcc56cc8af12b5140fcb2ef973b44cb03d8f4c (diff)
downloadmariadb-git-b7efd8174a9e46ae89337b0364f132a574dc6c2f.tar.gz
limit HEAP table size with max_heap_table_size, better estimation for mem_per_row
heap/hp_create.c: limit HEAP table size with max_heap_table_size heap/hp_write.c: limit HEAP table size with max_heap_table_size include/heap.h: limit HEAP table size with max_heap_table_size sql/ha_heap.cc: limit HEAP table size with max_heap_table_size better estimation for mem_per_row
Diffstat (limited to 'include/heap.h')
-rw-r--r--include/heap.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/heap.h b/include/heap.h
index 5e83a6e2cb5..ac2b38d1f2d 100644
--- a/include/heap.h
+++ b/include/heap.h
@@ -125,8 +125,8 @@ typedef struct st_hp_keydef /* Key definition with open */
TREE rb_tree;
int (*write_key)(struct st_heap_info *info, struct st_hp_keydef *keyinfo,
const byte *record, byte *recpos);
- int (*delete_key)(struct st_heap_info *info, struct st_hp_keydef *keyinfo,
- const byte *record, byte *recpos, int flag);
+ int (*delete_key)(struct st_heap_info *info, struct st_hp_keydef *keyinfo,
+ const byte *record, byte *recpos, int flag);
uint (*get_key_length)(struct st_hp_keydef *keydef, const byte *key);
} HP_KEYDEF;
@@ -135,7 +135,7 @@ typedef struct st_heap_share
HP_BLOCK block;
HP_KEYDEF *keydef;
ulong min_records,max_records; /* Params to open */
- ulong data_length,index_length;
+ ulong data_length,index_length,max_table_size;
uint records; /* records */
uint blength; /* records rounded up to 2^n */
uint deleted; /* Deleted records in database */
@@ -185,6 +185,7 @@ typedef struct st_heap_create_info
{
uint auto_key;
uint auto_key_type;
+ ulong max_table_size;
ulonglong auto_increment;
} HP_CREATE_INFO;