Permalink
Browse files

BUG#20637494 ASSERTION IN RE-CREATING CORRUPTED INNODB FULLTEXT INDEX

The fts index is corrupted after importing, we need to drop it before
we recreate it.

Reviewed-by: Jimmy Yang <jimmy.yang@oracle.com>
RB: 9077
  • Loading branch information...
Shaohua Wang
Shaohua Wang committed May 28, 2015
1 parent 3ba4563 commit 4395ad1755c3ed86c4210f76001a76eb0a69b553
Showing with 13 additions and 0 deletions.
  1. +13 −0 storage/innobase/handler/handler0alter.cc
@@ -3485,6 +3485,19 @@ ha_innobase::prepare_inplace_alter_table(
if (index->type & DICT_FTS) {
DBUG_ASSERT(index->type == DICT_FTS
|| (index->type & DICT_CORRUPT));
/* We need to drop any corrupted fts indexes
before we add a new fts index. */
if (add_fts_idx && index->type & DICT_CORRUPT) {
ib_errf(m_user_thd, IB_LOG_LEVEL_ERROR,
ER_INNODB_INDEX_CORRUPT,
"Fulltext index '%s' is corrupt. "
"you should drop this index first.",
index->name());
goto err_exit_no_heap;
}
continue;
}

0 comments on commit 4395ad1

Please sign in to comment.