Fix test failure caused by simulated compression failure on

IBUF_DUMMY table.
This commit is contained in:
Jan Lindström 2014-07-25 09:34:05 +03:00
parent 7bf45bec54
commit c104965746
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,