diff options
author | Igor Babaev <igor@askmonty.org> | 2018-08-24 20:53:00 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2018-08-24 20:53:00 -0700 |
commit | c826b6b8da3c9ee89ab457155bae96310213e5a1 (patch) | |
tree | 72085f6edd334eb4ba275ecba3c25706fbe5f624 /sql/opt_range.cc | |
parent | 8b949d961ce46479eb10b6ddb5d91eb7d8bc0f73 (diff) | |
download | mariadb-git-c826b6b8da3c9ee89ab457155bae96310213e5a1.tar.gz |
Added a new parameter for the function eq_ranges_exceeds_limit()
introduced in the patch fo MDEV-16934.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 47e07016782..2c015c1a5da 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -14619,13 +14619,12 @@ void QUICK_GROUP_MIN_MAX_SELECT::add_keys_and_lengths(String *key_names, /* Check whether the number for equality ranges exceeds the set threshold */ -bool eq_ranges_exceeds_limit(RANGE_SEQ_IF *seq, void *seq_init_param) +bool eq_ranges_exceeds_limit(RANGE_SEQ_IF *seq, void *seq_init_param, + uint limit) { KEY_MULTI_RANGE range; range_seq_t seq_it; uint count = 0; - PARAM *param= ((SEL_ARG_RANGE_SEQ*) seq_init_param)->param; - uint limit= param->thd->variables.eq_range_index_dive_limit; if (limit == 0) { |