summaryrefslogtreecommitdiff
path: root/storage/xtradb/buf/buf0rea.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/buf/buf0rea.c')
-rw-r--r--storage/xtradb/buf/buf0rea.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/storage/xtradb/buf/buf0rea.c b/storage/xtradb/buf/buf0rea.c
index 08aaac788d5..e5d04df797f 100644
--- a/storage/xtradb/buf/buf0rea.c
+++ b/storage/xtradb/buf/buf0rea.c
@@ -187,12 +187,19 @@ not_to_recover:
sync, space, 0, offset, 0, UNIV_PAGE_SIZE,
((buf_block_t*) bpage)->frame, bpage, trx);
}
+
+ if (srv_pass_corrupt_table) {
+ if (*err != DB_SUCCESS) {
+ bpage->is_corrupt = TRUE;
+ }
+ } else {
ut_a(*err == DB_SUCCESS);
+ }
if (sync) {
/* The i/o is already completed when we arrive from
fil_read */
- buf_page_io_complete(bpage);
+ buf_page_io_complete(bpage, trx);
}
return(1);