• Varun Gupta's avatar
    MDEV-11162 Assertion `num_records == m_idx_array.size()' failed in... · 822fb797
    Varun Gupta authored
    MDEV-11162 Assertion `num_records == m_idx_array.size()' failed in Filesort_buffer::alloc_sort_buffer(uint, uint)
    
    When JOIN::destroy() is called for a JOIN object that has
       - join->tmp_join != NULL
       - also has join->table[0]->sort
    
    then the latter was not cleaned up.
    This could cause a memory leak and/or asserts in the subsequent queries.
    
    Fixed by adding a cleanup call.
    822fb797
group_by_innodb.test 3.29 KB