• Sergei Petrunia's avatar
    MDEV-25069: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete #2 · 9c7bd4f2
    Sergei Petrunia authored
    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();
    ?
    9c7bd4f2
opt_range.cc 529 KB