mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-6185: Buildbot valgrind failure: Conditional jump or move in table_cond_selectivity
This commit is contained in:
@ -7342,8 +7342,11 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
|
||||
*/
|
||||
for (; quick_key_map & 1 ; quick_key_map>>= 1)
|
||||
{
|
||||
while (keyuse->keypart == keyparts)
|
||||
while (keyuse->table == table && keyuse->key == key &&
|
||||
keyuse->keypart == keyparts)
|
||||
{
|
||||
keyuse++;
|
||||
}
|
||||
keyparts++;
|
||||
}
|
||||
sel /= table->quick_rows[key] / table->stat_records();
|
||||
|
Reference in New Issue
Block a user