diff options
| author | Sergei Petrunia <psergey@askmonty.org> | 2021-03-17 16:51:56 +0300 |
|---|---|---|
| committer | Sergei Petrunia <psergey@askmonty.org> | 2021-03-17 20:59:30 +0300 |
| commit | 9c7bd4f283b5d866e08566a3ffb6954413b0513f (patch) | |
| tree | 2da998075b351af390b03d49d48cc7ab169df56d /mysql-test/main/range_notembedded.test | |
| parent | 7e3806ce24d81933c18ae37f8817a10c48d7c603 (diff) | |
| download | mariadb-git-9c7bd4f283b5d866e08566a3ffb6954413b0513f.tar.gz | |
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();
?
Diffstat (limited to 'mysql-test/main/range_notembedded.test')
| -rw-r--r-- | mysql-test/main/range_notembedded.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/main/range_notembedded.test b/mysql-test/main/range_notembedded.test index 5f6a05e8d91..4e77d6a4810 100644 --- a/mysql-test/main/range_notembedded.test +++ b/mysql-test/main/range_notembedded.test @@ -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; |
