Skip to content
Permalink
Browse files
MDEV-23856 fts_optimize_wq accessed after shutdown of FTS Optimize th…
…read

In fts_optimize_remove_table(), InnoDB tries to access the
fts_optimize_wq after shutting down the fts optimize thread.
This issue caused by the commit a41d429.
Fix should check for fts optimize thread shutdown state
before checking fts_optimize_wq.
  • Loading branch information
Thirunarayanan committed Sep 30, 2020
1 parent cd5f4d2 commit d6b33ea
Showing 1 changed file with 7 additions and 3 deletions.
@@ -2603,9 +2603,13 @@ fts_optimize_remove_table(

os_event_destroy(event);

ut_d(mutex_enter(&fts_optimize_wq->mutex));
ut_ad(!table->fts->in_queue);
ut_d(mutex_exit(&fts_optimize_wq->mutex));
#ifdef UNIV_DEBUG
if (!fts_opt_start_shutdown) {
mutex_enter(&fts_optimize_wq->mutex);
ut_ad(!table->fts->in_queue);
mutex_exit(&fts_optimize_wq->mutex);
}
#endif /* UNIV_DEBUG */
}

/** Send sync fts cache for the table.

0 comments on commit d6b33ea

Please sign in to comment.