• Sergei Petrunia's avatar
    MDEV-8779: mysqld got signal 11 in sql/opt_range_mrr.cc:100(step_down_to) · 9b9e36ed
    Sergei Petrunia authored
    The crash was caused by range optimizer using RANGE_OPT_PARAM::min_key
    (and max_key) to store keys. Buffer size was a good upper bound for
    range analysis and partition pruning, but not for EITS selectivity
    calculations.
    
    Fixed by making these buffers variable-size. The sizes are calculated
    from [pseudo]indexes used for range analysis.
    9b9e36ed
opt_range.h 53.2 KB