diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 205514f38d4..d0c4edd2b60 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -6966,7 +6966,7 @@ bool is_delimiter(const char* p) terminated by new line '\n' regardless how many "delimiter" it contain. */ -#define MAX_QUERY (256*1024*2) /* 256K -- a test in sp-big is >128K */ +#define MAX_QUERY (256*1024*1024*2) /* 256K -- a test in sp-big is >128K */ static char read_command_buf[MAX_QUERY]; int read_command(struct st_command** command_ptr) diff --git a/storage/innobase/btr/btr0btr.cc b/storage/innobase/btr/btr0btr.cc index 0aa8a432067..93a43594bdf 100644 --- a/storage/innobase/btr/btr0btr.cc +++ b/storage/innobase/btr/btr0btr.cc @@ -2155,13 +2155,15 @@ btr_insert_on_non_leaf_level_func( tuple, &rec, &dummy_big_rec, 0, NULL, mtr); if (err == DB_FAIL) { + int ps7318 = 0; + DBUG_EXECUTE_IF("PS-7318", ps7318=1;); err = btr_cur_pessimistic_insert(flags | BTR_NO_LOCKING_FLAG | BTR_KEEP_SYS_FLAG | BTR_NO_UNDO_LOG_FLAG, &cursor, &offsets, &heap, tuple, &rec, - &dummy_big_rec, 0, NULL, mtr); + &dummy_big_rec, 0, NULL, mtr, ps7318); ut_a(err == DB_SUCCESS); } diff --git a/storage/innobase/btr/btr0cur.cc b/storage/innobase/btr/btr0cur.cc index b3b818c7429..22ba21cc979 100644 --- a/storage/innobase/btr/btr0cur.cc +++ b/storage/innobase/btr/btr0cur.cc @@ -3370,7 +3370,8 @@ btr_cur_pessimistic_insert( NULL */ ulint n_ext, /*!< in: number of externally stored columns */ que_thr_t* thr, /*!< in: query thread or NULL */ - mtr_t* mtr) /*!< in/out: mini-transaction */ + mtr_t* mtr, + int ps7318) /*!< in/out: mini-transaction */ { dict_index_t* index = cursor->index; big_rec_t* big_rec_vec = NULL; @@ -3416,6 +3417,7 @@ btr_cur_pessimistic_insert( success = fsp_reserve_free_extents(&n_reserved, index->space, n_extents, FSP_NORMAL, mtr); + DBUG_EXECUTE_IF("PS-7318", if(1 == ps7318) success=false;); if (!success) { return(DB_OUT_OF_FILE_SPACE); } diff --git a/storage/innobase/include/btr0cur.h b/storage/innobase/include/btr0cur.h index 0d86d24871c..c306ebf22f3 100644 --- a/storage/innobase/include/btr0cur.h +++ b/storage/innobase/include/btr0cur.h @@ -348,7 +348,8 @@ btr_cur_pessimistic_insert( NULL */ ulint n_ext, /*!< in: number of externally stored columns */ que_thr_t* thr, /*!< in: query thread or NULL */ - mtr_t* mtr) /*!< in/out: mini-transaction */ + mtr_t* mtr, + int ps7318 = 0) /*!< in/out: mini-transaction */ MY_ATTRIBUTE((warn_unused_result)); /*************************************************************//** See if there is enough place in the page modification log to log