1
0
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:
Sergey Petrunya
2014-04-29 18:33:17 +04:00
parent 54265c5f50
commit 32392c05b7

View File

@ -7342,8 +7342,11 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
*/ */
for (; quick_key_map & 1 ; quick_key_map>>= 1) for (; quick_key_map & 1 ; quick_key_map>>= 1)
{ {
while (keyuse->keypart == keyparts) while (keyuse->table == table && keyuse->key == key &&
keyuse->keypart == keyparts)
{
keyuse++; keyuse++;
}
keyparts++; keyparts++;
} }
sel /= table->quick_rows[key] / table->stat_records(); sel /= table->quick_rows[key] / table->stat_records();