Skip to content

Commit 075f61a

Browse files
committed
Revert part of commit fec844a
row_insert_for_mysql(): Remove some duplicated code
1 parent 5208e89 commit 075f61a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

storage/innobase/row/row0mysql.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,17 +1424,6 @@ row_insert_for_mysql(
14241424
} else if (high_level_read_only) {
14251425
return(DB_READ_ONLY);
14261426
}
1427-
DBUG_EXECUTE_IF("mark_table_corrupted", {
1428-
/* Mark the table corrupted for the clustered index */
1429-
dict_index_t* index = dict_table_get_first_index(table);
1430-
ut_ad(dict_index_is_clust(index));
1431-
dict_set_corrupted(index, trx, "INSERT TABLE"); });
1432-
1433-
if (dict_table_is_corrupted(table)) {
1434-
1435-
ib::error() << "Table " << table->name << " is corrupt.";
1436-
return(DB_TABLE_CORRUPT);
1437-
}
14381427

14391428
DBUG_EXECUTE_IF("mark_table_corrupted", {
14401429
/* Mark the table corrupted for the clustered index */

0 commit comments

Comments
 (0)