mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixed LP bug #891953.
Due to this bug the function SEL_IMERGE::or_sel_tree_with_checks() could build an inconsistent merge tree if one of the SEL_TREEs in the resulting index merge happened to contain a full key range. This could trigger an assertion failure.
This commit is contained in:
@ -1208,13 +1208,13 @@ int SEL_IMERGE::or_sel_tree_with_checks(RANGE_OPT_PARAM *param,
|
||||
|
||||
if (result)
|
||||
{
|
||||
result->keys_map= result_keys;
|
||||
if (result_keys.is_clear_all())
|
||||
result->type= SEL_TREE::ALWAYS;
|
||||
if ((result->type == SEL_TREE::MAYBE) ||
|
||||
(result->type == SEL_TREE::ALWAYS))
|
||||
return 1;
|
||||
/* SEL_TREE::IMPOSSIBLE is impossible here */
|
||||
result->keys_map= result_keys;
|
||||
*or_tree= result;
|
||||
was_ored= TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user