summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/fut0fut.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/include/fut0fut.ic')
-rw-r--r--storage/xtradb/include/fut0fut.ic7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/xtradb/include/fut0fut.ic b/storage/xtradb/include/fut0fut.ic
index 0b52719a055..529f2a516d3 100644
--- a/storage/xtradb/include/fut0fut.ic
+++ b/storage/xtradb/include/fut0fut.ic
@@ -23,6 +23,7 @@ File-based utilities
Created 12/13/1995 Heikki Tuuri
***********************************************************************/
+#include "srv0srv.h"
#include "sync0rw.h"
#include "buf0buf.h"
@@ -48,6 +49,12 @@ fut_get_ptr(
ut_ad((rw_latch == RW_S_LATCH) || (rw_latch == RW_X_LATCH));
block = buf_page_get(space, zip_size, addr.page, rw_latch, mtr);
+
+ if (srv_pass_corrupt_table && !block) {
+ return(0);
+ }
+ ut_a(block);
+
ptr = buf_block_get_frame(block) + addr.boffset;
buf_block_dbg_add_level(block, SYNC_NO_ORDER_CHECK);