mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Adding multi_range_read support to partitions
Other things: - Cleanup of allocated bitmaps done in open(), which simplifies init_partition_bitmaps() - Add needed defines in ha_spider.cc to enable new spider code - Fixed some DBUG_PRINT() to be consistent with normal code - Removed end space - The changes in test cases partition_innodb, partition_range, partition_pruning etc are becasue partitions can now more exactly calculate the number of rows in a range. Contains spider patches: 014,015,023,033,035,037,040,042,044,045,049,050,051,053,059
This commit is contained in:
@ -5344,6 +5344,27 @@ int ha_discover_table_names(THD *thd, LEX_CSTRING *db, MY_DIR *dirp,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
int handler::pre_read_multi_range_first(KEY_MULTI_RANGE **found_range_p,
|
||||
KEY_MULTI_RANGE *ranges,
|
||||
uint range_count,
|
||||
bool sorted, HANDLER_BUFFER *buffer,
|
||||
bool use_parallel)
|
||||
{
|
||||
int result;
|
||||
DBUG_ENTER("handler::pre_read_multi_range_first");
|
||||
result = pre_read_range_first(ranges->start_key.keypart_map ?
|
||||
&ranges->start_key : 0,
|
||||
ranges->end_key.keypart_map ?
|
||||
&ranges->end_key : 0,
|
||||
test(ranges->range_flag & EQ_RANGE),
|
||||
sorted,
|
||||
use_parallel);
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
Read first row between two ranges.
|
||||
Store ranges for future calls to read_range_next.
|
||||
|
Reference in New Issue
Block a user