• Mithun C Y's avatar
    Bug #20049521: CRASH IN MERGE_BUFFERS FILESORT.C WHEN INNODB WITH ORDER BY. · 2e3c2cd3
    Mithun C Y authored
    ISSUE:
    ------
    There can be up to MERGEBUFF2 number of sorted merge chunks,
    We need enough buffer space for at least one record from
    each merge chunks. If estimates are wrong(very low) and we
    allocate buffer space for less than MERGEBUFF2, then we will
    have issue in merge_buffers, if actual number of rows to be
    sorted is bigger than estimate and external filesort is
    chosen.
    
    SOLUTION:
    ---------
    Set number of rows to sort to be at least MERGEBUFF2.
    2e3c2cd3
filesort.cc 50.4 KB