summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-01-09 11:30:36 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-01-09 11:30:36 +0200
commit075f61a1d43c6805503735fc3dd118b90ae939de (patch)
treee6383d489f3032e25f65bfb3020ea34d76e98952 /storage
parent5208e898079ef7f226bdb2275e5a528ad3663b67 (diff)
downloadmariadb-git-075f61a1d43c6805503735fc3dd118b90ae939de.tar.gz
Revert part of commit fec844aca88e1c6b9c36bb0b811e92d9d023ffb9
row_insert_for_mysql(): Remove some duplicated code
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/row/row0mysql.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index 335ca35db95..7db855244ab 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -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 */