1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added a new parameter for the function eq_ranges_exceeds_limit()

introduced in the patch fo MDEV-16934.
This commit is contained in:
Igor Babaev
2018-08-24 20:53:00 -07:00
parent 8b949d961c
commit c826b6b8da
3 changed files with 9 additions and 7 deletions

View File

@ -64,13 +64,15 @@ handler::multi_range_read_info_const(uint keyno, RANGE_SEQ_IF *seq,
ha_rows rows, total_rows= 0;
uint n_ranges=0;
THD *thd= table->in_use;
uint limit= thd->variables.eq_range_index_dive_limit;
bool use_statistics_for_eq_range= eq_ranges_exceeds_limit(seq,
seq_init_param,
limit);
/* Default MRR implementation doesn't need buffer */
*bufsz= 0;
bool use_statistics_for_eq_range= eq_ranges_exceeds_limit(seq,
seq_init_param);
seq_it= seq->init(seq_init_param, n_ranges, *flags);
while (!seq->next(seq_it, &range))
{