diff options
Diffstat (limited to 'storage/xtradb/btr/btr0cur.cc')
-rw-r--r-- | storage/xtradb/btr/btr0cur.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/xtradb/btr/btr0cur.cc b/storage/xtradb/btr/btr0cur.cc index 4186c9ab33f..04e5797602c 100644 --- a/storage/xtradb/btr/btr0cur.cc +++ b/storage/xtradb/btr/btr0cur.cc @@ -4175,6 +4175,14 @@ btr_estimate_number_of_different_key_vals( page = btr_cur_get_page(&cursor); SRV_CORRUPT_TABLE_CHECK(page, goto exit_loop;); + DBUG_EXECUTE_IF("ib_corrupt_page_while_stats_calc", + page = NULL;); + + SRV_CORRUPT_TABLE_CHECK(page, + { + mtr_commit(&mtr); + goto exit_loop; + }); rec = page_rec_get_next(page_get_infimum_rec(page)); |