summaryrefslogtreecommitdiff
path: root/storage/innobase/row/row0uins.c
diff options
context:
space:
mode:
authorJimmy Yang <jimmy.yang@oracle.com>2011-08-16 18:07:59 -0700
committerJimmy Yang <jimmy.yang@oracle.com>2011-08-16 18:07:59 -0700
commit95fa7fab3b70e5117d757d9df42ac9d7040fea03 (patch)
treef35296e1cd9a625708ab194372e0944f1309f78c /storage/innobase/row/row0uins.c
parent887ac6774f9d33b64d7c316e9310038592ec6a83 (diff)
downloadmariadb-git-95fa7fab3b70e5117d757d9df42ac9d7040fea03.tar.gz
Fix bug #11830883, SUPPORT "CORRUPTED" BIT FOR INNODB TABLES AND INDEXES.
Also addressed issues in bug #11745133, where we could mark a table corrupted instead of crashing the server when found a corrupted buffer/page if the table created with innodb_file_per_table on.
Diffstat (limited to 'storage/innobase/row/row0uins.c')
-rw-r--r--storage/innobase/row/row0uins.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/row/row0uins.c b/storage/innobase/row/row0uins.c
index d25afed3840..4fa97c9355d 100644
--- a/storage/innobase/row/row0uins.c
+++ b/storage/innobase/row/row0uins.c
@@ -328,6 +328,8 @@ row_undo_ins(
node->index = dict_table_get_next_index(
dict_table_get_first_index(node->table));
+ dict_table_skip_corrupt_index(node->index);
+
while (node->index != NULL) {
dtuple_t* entry;
ulint err;
@@ -355,7 +357,7 @@ row_undo_ins(
}
}
- node->index = dict_table_get_next_index(node->index);
+ dict_table_next_uncorrupted_index(node->index);
}
log_free_check();