Commit 075f61a1 authored by Marko Mäkelä's avatar Marko Mäkelä

Revert part of commit fec844ac

row_insert_for_mysql(): Remove some duplicated code
parent 5208e898
...@@ -1424,17 +1424,6 @@ row_insert_for_mysql( ...@@ -1424,17 +1424,6 @@ row_insert_for_mysql(
} else if (high_level_read_only) { } else if (high_level_read_only) {
return(DB_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", { DBUG_EXECUTE_IF("mark_table_corrupted", {
/* Mark the table corrupted for the clustered index */ /* Mark the table corrupted for the clustered index */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment