Commit 9c7bd4f
committed
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();
?1 parent 7e3806c commit 9c7bd4f
File tree
3 files changed
+25
-0
lines changed- mysql-test/main
- sql
3 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10642 | 10642 | | |
10643 | 10643 | | |
10644 | 10644 | | |
| 10645 | + | |
| 10646 | + | |
| 10647 | + | |
10645 | 10648 | | |
10646 | 10649 | | |
10647 | 10650 | | |
| 10651 | + | |
| 10652 | + | |
| 10653 | + | |
10648 | 10654 | | |
10649 | 10655 | | |
10650 | 10656 | | |
| |||
0 commit comments