1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Merge 10.5 into 10.6

This commit is contained in:
Marko Mäkelä
2023-01-10 13:54:17 +02:00
20 changed files with 183 additions and 22 deletions

View File

@@ -1890,7 +1890,7 @@ SEL_ARG::SEL_ARG(SEL_ARG &arg) :Sql_alloc()
next= 0;
if (next_key_part)
{
++next_key_part->use_count;
next_key_part->increment_use_count(1);
weight += next_key_part->weight;
}
}
@@ -10607,8 +10607,7 @@ key_or(RANGE_OPT_PARAM *param, SEL_ARG *key1,SEL_ARG *key2)
Move on to next range in key2
*/
key2->increment_use_count(-1); // Free not used tree
key2=key2_next;
continue;
key2= key2_next;
}
else
{
@@ -10622,8 +10621,9 @@ key_or(RANGE_OPT_PARAM *param, SEL_ARG *key1,SEL_ARG *key2)
tmp: [---------]
*/
key2->copy_max_to_min(tmp);
continue;
key2= key2_next;
}
continue;
}
/*