Fixed LP bug #752353.

In some cases the field max_part_no of the SEL_ARG structure
was not initialized. That triggered a Valgrind complain.
This commit is contained in:
Igor Babaev 2011-04-20 15:30:21 -07:00
commit 79439d9a74
4 changed files with 40 additions and 0 deletions

View file

@ -7338,6 +7338,7 @@ get_mm_parts(RANGE_OPT_PARAM *param, COND *cond_func, Field *field,
DBUG_RETURN(0); // OOM
}
sel_arg->part=(uchar) key_part->part;
sel_arg->max_part_no= sel_arg->part+1;
tree->keys[key_part->key]=sel_add(tree->keys[key_part->key],sel_arg);
tree->keys_map.set_bit(key_part->key);
}