Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-21269 Parallel merging of fts index rebuild fails
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.
- Loading branch information
4f26aea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that this was broken in ba19764 by me. Apparently, the old check
i >= 0
was relying oni
being signed.