diff options
author | serg@serg.mysql.com <> | 2001-07-02 21:18:57 +0200 |
---|---|---|
committer | serg@serg.mysql.com <> | 2001-07-02 21:18:57 +0200 |
commit | 15b6738474fd9df56c4aff8f984278cd374bd3f3 (patch) | |
tree | c2f7be1c19137e631cb5b7d9a3163a215a3d14e6 /sql/uniques.cc | |
parent | 3c7cc2285c6a80cd998faa5d669d7d9d0d20b632 (diff) | |
download | mariadb-git-15b6738474fd9df56c4aff8f984278cd374bd3f3.tar.gz |
memory-limited tree
bulk inserts optimization: caching keys in binary tree
Diffstat (limited to 'sql/uniques.cc')
-rw-r--r-- | sql/uniques.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/uniques.cc b/sql/uniques.cc index 78fd8fe6e60..becb3d8a3a5 100644 --- a/sql/uniques.cc +++ b/sql/uniques.cc @@ -38,7 +38,7 @@ Unique::Unique(qsort_cmp2 comp_func, uint size, ulong max_in_memory_size_arg) :max_in_memory_size(max_in_memory_size_arg),elements(0) { my_b_clear(&file); - init_tree(&tree, max_in_memory_size / 16, size, comp_func, 0, 0); + init_tree(&tree, max_in_memory_size / 16, 0, size, comp_func, 0, NULL, NULL); /* If the following fail's the next add will also fail */ init_dynamic_array(&file_ptrs, sizeof(BUFFPEK), 16, 16); max_elements= max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+size); |