summaryrefslogtreecommitdiff
path: root/isam/pack_isam.c
diff options
context:
space:
mode:
Diffstat (limited to 'isam/pack_isam.c')
-rw-r--r--isam/pack_isam.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/isam/pack_isam.c b/isam/pack_isam.c
index 4a3a787ff5c..6122a4e6024 100644
--- a/isam/pack_isam.c
+++ b/isam/pack_isam.c
@@ -762,7 +762,8 @@ static int get_statistic(MRG_INFO *mrg,HUFF_COUNTS *huff_counts)
if (count->tree_buff)
{
global_count=count;
- if (!(element=tree_insert(&count->int_tree,pos,0)) ||
+ if (!(element=tree_insert(&count->int_tree, pos, 0,
+ count->int_tree.custom_arg)) ||
((element->count == 1 &&
count->tree_buff + tree_buff_length <
count->tree_pos + count->field_length) ||
@@ -1733,7 +1734,8 @@ static int compress_isam_file(MRG_INFO *mrg, HUFF_COUNTS *huff_counts)
break;
case FIELD_INTERVALL:
global_count=count;
- pos=(byte*) tree_search(&count->int_tree,start_pos);
+ pos=(byte*) tree_search(&count->int_tree, start_pos,
+ count->int_tree.custom_arg);
intervall=(uint) (pos - count->tree_buff)/field_length;
write_bits(tree->code[intervall],(uint) tree->code_len[intervall]);
start_pos=end_pos;