Skip to content

Commit 59d91fd

Browse files
author
Shaohua Wang
committed
BUG#18021306 - ASSERT AT ERROR != DB_SUCCESS in file row0ftsort.cc
Fix the assert, because child thread can exit in either error or told by parent. rb://4290 by Jimmy.Yang
1 parent de465c7 commit 59d91fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/innobase/row/row0ftsort.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,9 @@ fts_parallel_tokenization(
869869
mutex_exit(&psort_info->mutex);
870870

871871
if (UT_LIST_GET_LEN(psort_info->fts_doc_list) > 0) {
872-
ut_ad(error != DB_SUCCESS);
872+
/* child can exit either with error or told by parent. */
873+
ut_ad(error != DB_SUCCESS
874+
|| psort_info->state == FTS_PARENT_EXITING);
873875
}
874876

875877
/* Free fts doc list in case of error. */

0 commit comments

Comments
 (0)