summaryrefslogtreecommitdiff
path: root/myisam/myisamdef.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-06-14 13:20:02 +0000
committerunknown <serg@serg.mysql.com>2002-06-14 13:20:02 +0000
commit44d91e0a1f3b404beb4c1bd4706371914ca1bce8 (patch)
tree03c4d9f6efef0db9178b5f0e5921b204dc15a871 /myisam/myisamdef.h
parent6e7a37f520db166f6a02295f38f78ab02a94837d (diff)
downloadmariadb-git-44d91e0a1f3b404beb4c1bd4706371914ca1bce8.tar.gz
do not use bulk insert tree code if ``myisam_bulk_insert_tree_size'' is too small
Diffstat (limited to 'myisam/myisamdef.h')
-rw-r--r--myisam/myisamdef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h
index e9d3461fe9a..fc46b5ecd5c 100644
--- a/myisam/myisamdef.h
+++ b/myisam/myisamdef.h
@@ -370,8 +370,10 @@ struct st_myisam_info {
#define MI_MAX_KEY_BLOCK_SIZE (MI_MAX_KEY_BLOCK_LENGTH/MI_MIN_KEY_BLOCK_LENGTH)
#define MI_BLOCK_SIZE(key_length,data_pointer,key_pointer) ((((key_length+data_pointer+key_pointer)*4+key_pointer+2)/myisam_block_size+1)*myisam_block_size)
-#define MI_MAX_KEYPTR_SIZE 5 /* For calculating block lengths */
-#define MI_MIN_KEYBLOCK_LENGTH 50 /* When to split delete blocks */
+#define MI_MAX_KEYPTR_SIZE 5 /* For calculating block lengths */
+#define MI_MIN_KEYBLOCK_LENGTH 50 /* When to split delete blocks */
+
+#define MI_MIN_SIZE_BULK_INSERT_TREE 16384 /* this is per key */
/* The UNIQUE check is done with a hashed long key */