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

Code cleanup part#2: do not copy key values in xxx_selectivity() functions

This commit is contained in:
Sergei Petrunia
2021-08-29 19:32:25 +03:00
parent 2a1cdbabec
commit fcf58a5e0f
3 changed files with 84 additions and 121 deletions

View File

@ -400,10 +400,8 @@ public:
double avg_selection) override;
double range_selectivity(Field *field, key_range *min_endp,
key_range *max_endp) override;
/*
* Returns the index of the biggest histogram value that is smaller than endpoint
*/
int find_bucket(Field *field, const uchar *endpoint);
private:
int find_bucket(Field *field, const uchar *lookup_val, bool equal_is_less);
};
class Columns_statistics;