Commit c1049657 authored by Jan Lindström's avatar Jan Lindström

Fix test failure caused by simulated compression failure on

IBUF_DUMMY table.
parent 7bf45bec
...@@ -1274,7 +1274,8 @@ page_zip_compress( ...@@ -1274,7 +1274,8 @@ page_zip_compress(
if (srv_simulate_comp_failures if (srv_simulate_comp_failures
&& !dict_index_is_ibuf(index) && !dict_index_is_ibuf(index)
&& page_get_n_recs(page) >= 2 && page_get_n_recs(page) >= 2
&& ((ulint)(rand() % 100) < srv_simulate_comp_failures)) { && ((ulint)(rand() % 100) < srv_simulate_comp_failures)
&& strcasecmp(index->table_name, "IBUF_DUMMY") != 0) {
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
fprintf(stderr, fprintf(stderr,
......
...@@ -1278,7 +1278,8 @@ page_zip_compress( ...@@ -1278,7 +1278,8 @@ page_zip_compress(
if (srv_simulate_comp_failures if (srv_simulate_comp_failures
&& !dict_index_is_ibuf(index) && !dict_index_is_ibuf(index)
&& page_get_n_recs(page) >= 2 && page_get_n_recs(page) >= 2
&& ((ulint)(rand() % 100) < srv_simulate_comp_failures)) { && ((ulint)(rand() % 100) < srv_simulate_comp_failures)
&& strcasecmp(index->table_name, "IBUF_DUMMY") != 0) {
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
fprintf(stderr, fprintf(stderr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment