summaryrefslogtreecommitdiff
path: root/myisammrg/myrg_range.c
diff options
context:
space:
mode:
authorunknown <monty@mishka.local>2004-05-16 14:49:32 +0300
committerunknown <monty@mishka.local>2004-05-16 14:49:32 +0300
commit8ef62cc1ef3e2b16795fa5fbbc45bcdf422f344c (patch)
tree0f57d538c1b4bb04893ef169be6dc7ab73ee1c67 /myisammrg/myrg_range.c
parent36bce251128b8fd300c4a6329d0c2d8f601a14bc (diff)
parent70f79563d9fa8ef3cdfef01b8eee95ea6e927147 (diff)
downloadmariadb-git-8ef62cc1ef3e2b16795fa5fbbc45bcdf422f344c.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mishka.local:/home/my/mysql-4.1 sql/sql_acl.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'myisammrg/myrg_range.c')
-rw-r--r--myisammrg/myrg_range.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/myisammrg/myrg_range.c b/myisammrg/myrg_range.c
index 7644ae40c7b..aafdf70525c 100644
--- a/myisammrg/myrg_range.c
+++ b/myisammrg/myrg_range.c
@@ -16,20 +16,15 @@
#include "myrg_def.h"
-ha_rows myrg_records_in_range(MYRG_INFO *info, int inx, const byte *start_key,
- uint start_key_len,
- enum ha_rkey_function start_search_flag,
- const byte *end_key, uint end_key_len,
- enum ha_rkey_function end_search_flag)
+ha_rows myrg_records_in_range(MYRG_INFO *info, int inx,
+ key_range *min_key, key_range *max_key)
{
ha_rows records=0, res;
MYRG_TABLE *table;
for (table=info->open_tables ; table != info->end_table ; table++)
{
- res=mi_records_in_range(table->table, inx,
- start_key, start_key_len, start_search_flag,
- end_key, end_key_len, end_search_flag);
+ res= mi_records_in_range(table->table, inx, min_key, max_key);
if (res == HA_POS_ERROR)
return HA_POS_ERROR;
if (records > HA_POS_ERROR - res)