mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-25069: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete #2
Note they key_or() may call tree_delete(), which will cause the weight asserts to be checked. In order to avoid them from firing, update key1 tree's weight after we've changed key1->some_local_child->next_key_part. Having done that, do we still need this at the function end: /* Re-compute the result tree's weight. */ key1->update_weight_locally(); ?
This commit is contained in:
@ -140,3 +140,13 @@ WHERE
|
||||
--enable_query_log
|
||||
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25069: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete #2
|
||||
--echo #
|
||||
|
||||
SELECT *
|
||||
FROM mysql.help_relation
|
||||
WHERE
|
||||
(help_topic_id < '2' OR help_topic_id != 8 OR help_topic_id < 1) AND
|
||||
help_keyword_id = help_topic_id;
|
||||
|
Reference in New Issue
Block a user