summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-12-26 09:46:25 +0300
committerunknown <sergefp@mysql.com>2005-12-26 09:46:25 +0300
commitb3abc9773e9944fb8b0c70c63ff2a6b1d4210366 (patch)
tree82ed168c9da9c10f795d8523a5226a193557846e
parent32ff7d99d4b5142442e66b2c392c2c74f1e7e253 (diff)
downloadmariadb-git-b3abc9773e9944fb8b0c70c63ff2a6b1d4210366.tar.gz
WL#2985 "Partition pruning": fixes to post-review fixes: when modifying SEL_TREE::keys,
adjust SEL_TREE::keys_map appropriately.
-rw-r--r--sql/opt_range.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 877801f0ffe..f090fac2ecf 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -5388,7 +5388,10 @@ static bool remove_nonrange_trees(RANGE_OPT_PARAM *param, SEL_TREE *tree)
if (tree->keys[i])
{
if (tree->keys[i]->part)
+ {
tree->keys[i]= NULL;
+ tree->keys_map.clear_bit(i);
+ }
else
res= TRUE;
}