Skip to content

Commit

Permalink
Revert part of commit fec844a
Browse files Browse the repository at this point in the history
row_insert_for_mysql(): Remove some duplicated code
  • Loading branch information
dr-m committed Jan 9, 2018
1 parent 5208e89 commit 075f61a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions storage/innobase/row/row0mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1424,17 +1424,6 @@ row_insert_for_mysql(
} else if (high_level_read_only) {
return(DB_READ_ONLY);
}
DBUG_EXECUTE_IF("mark_table_corrupted", {
/* Mark the table corrupted for the clustered index */
dict_index_t* index = dict_table_get_first_index(table);
ut_ad(dict_index_is_clust(index));
dict_set_corrupted(index, trx, "INSERT TABLE"); });

if (dict_table_is_corrupted(table)) {

ib::error() << "Table " << table->name << " is corrupt.";
return(DB_TABLE_CORRUPT);
}

DBUG_EXECUTE_IF("mark_table_corrupted", {
/* Mark the table corrupted for the clustered index */
Expand Down

0 comments on commit 075f61a

Please sign in to comment.