1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-11321: MariaRocks: type_binary_indexes, type_blob_indexes fail

... due to different index statistics
Make statistics calculations in MariaRocks produce the same values
that MyRocks produces.

Added a comment in rdb_datadic.cc
This commit is contained in:
Sergei Petrunia
2016-12-02 21:08:08 +00:00
parent 7f43f736ac
commit d903396c18
2 changed files with 21 additions and 2 deletions

View File

@@ -283,7 +283,12 @@ void Rdb_key_def::setup(const TABLE *tbl, const Rdb_tbl_def *tbl_def)
key_part++;
/*
For "unique" secondary indexes, pretend they have
"index extensions"
"index extensions".
MariaDB also has this property: if an index has a partially-covered
column like KEY(varchar_col(N)), then the SQL layer will think it is
not "extended" with PK columns. The code below handles this case,
also.
*/
if (secondary_key && src_i+1 == key_info->ext_key_parts)
{