• Thirunarayanan Balathandayuthapani's avatar
    MDEV-21269 Parallel merging of fts index rebuild fails · 4f26aea5
    Thirunarayanan Balathandayuthapani authored
    Problem:
    =======
      - During alter rebuild, document read from old table is tokenzied
    parallelly by innodb_ft_sort_pll_degree threads and stores it
    in respective merge files. While doing the parallel merge, InnoDB
    wrongly skips the root level selection of merging buffer records.
    So it leads to insertion of merge records in non-ascending order.
    
    Solution:
    ==========
      Build selection tree for the root level also. So that root of
    selection tree can always contain sorted buffer.
    4f26aea5
row0ftsort.cc 48.8 KB