summaryrefslogtreecommitdiff
path: root/myisam/mi_extra.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2002-12-07 22:40:20 +0100
committerserg@serg.mysql.com <>2002-12-07 22:40:20 +0100
commitb42eff16cb6ff402d5b7d332f7081df3948a1559 (patch)
treecac4edcace5032716391947982c07af2dba77b24 /myisam/mi_extra.c
parentfc076abe85f8833da89add9e3b14cbbe30d7a7d0 (diff)
downloadmariadb-git-b42eff16cb6ff402d5b7d332f7081df3948a1559.tar.gz
bulk insert code optimized
Diffstat (limited to 'myisam/mi_extra.c')
-rw-r--r--myisam/mi_extra.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/myisam/mi_extra.c b/myisam/mi_extra.c
index d7a3aea516d..8429b22dad4 100644
--- a/myisam/mi_extra.c
+++ b/myisam/mi_extra.c
@@ -358,33 +358,6 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
case HA_EXTRA_QUICK:
info->quick_mode=1;
break;
- case HA_EXTRA_BULK_INSERT_BEGIN:
- error=_mi_init_bulk_insert(info, (extra_arg ? *(ulong*) extra_arg :
- myisam_bulk_insert_tree_size));
- break;
- case HA_EXTRA_BULK_INSERT_FLUSH:
- if (info->bulk_insert)
- {
- uint index_to_flush= *(uint*) extra_arg;
- if (is_tree_inited(&info->bulk_insert[index_to_flush]))
- reset_tree(&info->bulk_insert[index_to_flush]);
- }
- break;
- case HA_EXTRA_BULK_INSERT_END:
- if (info->bulk_insert)
- {
- uint i;
- for (i=0 ; i < share->base.keys ; i++)
- {
- if (is_tree_inited(& info->bulk_insert[i]))
- {
- delete_tree(& info->bulk_insert[i]);
- }
- }
- my_free((void *)info->bulk_insert, MYF(0));
- info->bulk_insert=0;
- }
- break;
case HA_EXTRA_NO_ROWS:
if (!share->state.header.uniques)
info->opt_flag|= OPT_NO_ROWS;