mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge 10.0 into 10.1
This commit is contained in:
@@ -5077,6 +5077,11 @@ sub mysqld_start ($$) {
|
||||
}
|
||||
}
|
||||
|
||||
# "Dynamic" version of MYSQLD_CMD is reevaluated with each mysqld_start.
|
||||
# Use it to restart the server at testing a failing server start (e.g
|
||||
# due to incompatible options).
|
||||
$ENV{'MYSQLD_LAST_CMD'}= "$exe @$args";
|
||||
|
||||
if ( $opt_gdb || $opt_manual_gdb )
|
||||
{
|
||||
gdb_arguments(\$args, \$exe, $mysqld->name());
|
||||
@@ -5173,11 +5178,6 @@ sub mysqld_start ($$) {
|
||||
# Remember options used when starting
|
||||
$mysqld->{'started_opts'}= $extra_opts;
|
||||
|
||||
# "Dynamic" version of MYSQLD_CMD is reevaluated with each mysqld_start.
|
||||
# Use it to restart the server at testing a failing server start (e.g
|
||||
# due to incompatible options).
|
||||
$ENV{'MYSQLD_LAST_CMD'}= "$exe @$args";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1249,6 +1249,7 @@ else
|
||||
|
||||
if ((c = *ptr) >= CHAR_8) break;
|
||||
|
||||
/* fall through */
|
||||
/* Fall through with a digit less than 8 */
|
||||
|
||||
/* \0 always starts an octal number, but we may drop through to here with a
|
||||
@@ -5097,6 +5098,8 @@ for (;; ptr++)
|
||||
either not match or match, depending on whether the class is or is
|
||||
not negated. */
|
||||
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
if (local_negate &&
|
||||
(xclass || tempptr[2] != CHAR_RIGHT_SQUARE_BRACKET))
|
||||
@@ -7165,7 +7168,7 @@ for (;; ptr++)
|
||||
goto FAILED;
|
||||
}
|
||||
/* Fall through to handle (?P< as (?< is handled */
|
||||
|
||||
/* fall through */
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
DEFINE_NAME: /* Come here from (?< handling */
|
||||
|
||||
@@ -1053,6 +1053,8 @@ for (;;)
|
||||
group. At this point, the return is converted into MATCH_NOMATCH so that
|
||||
previous backup points can be taken. */
|
||||
|
||||
/* fall through */
|
||||
|
||||
case OP_ONCE:
|
||||
case OP_BRA:
|
||||
case OP_SBRA:
|
||||
|
||||
@@ -44,12 +44,6 @@ static const LEX_STRING metadata_lock_info_lock_mode[] = {
|
||||
{ C_STRING_WITH_LEN("MDL_EXCLUSIVE") },
|
||||
};
|
||||
|
||||
static const LEX_STRING metadata_lock_info_duration[] = {
|
||||
{ C_STRING_WITH_LEN("MDL_STATEMENT") },
|
||||
{ C_STRING_WITH_LEN("MDL_TRANSACTION") },
|
||||
{ C_STRING_WITH_LEN("MDL_EXPLICIT") },
|
||||
};
|
||||
|
||||
static ST_FIELD_INFO i_s_metadata_lock_info_fields_info[] =
|
||||
{
|
||||
{"THREAD_ID", 20, MYSQL_TYPE_LONGLONG, 0,
|
||||
@@ -128,8 +122,6 @@ static int i_s_metadata_lock_info_init(
|
||||
== MDL_key::NAMESPACE_END);
|
||||
compile_time_assert(sizeof(metadata_lock_info_lock_mode)/sizeof(LEX_STRING)
|
||||
== MDL_TYPE_END);
|
||||
compile_time_assert(sizeof(metadata_lock_info_duration)/sizeof(LEX_STRING)
|
||||
== MDL_DURATION_END);
|
||||
|
||||
ST_SCHEMA_TABLE *schema = (ST_SCHEMA_TABLE *) p;
|
||||
DBUG_ENTER("i_s_metadata_lock_info_init");
|
||||
|
||||
@@ -7897,7 +7897,7 @@ uint32 ha_partition::calculate_key_hash_value(Field **field_array)
|
||||
case MYSQL_TYPE_BLOB:
|
||||
case MYSQL_TYPE_VAR_STRING:
|
||||
case MYSQL_TYPE_GEOMETRY:
|
||||
/* fall through. */
|
||||
/* fall through */
|
||||
default:
|
||||
DBUG_ASSERT(0); // New type?
|
||||
/* Fall through for default hashing (5.5). */
|
||||
|
||||
@@ -77,10 +77,9 @@ btr_corruption_report(
|
||||
index->name, index->table_name);
|
||||
if (block->page.zip.data) {
|
||||
buf_page_print(block->page.zip.data,
|
||||
buf_block_get_zip_size(block),
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_block_get_zip_size(block));
|
||||
}
|
||||
buf_page_print(buf_block_get_frame(block), 0, 0);
|
||||
buf_page_print(buf_block_get_frame(block), 0);
|
||||
}
|
||||
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
@@ -1582,11 +1581,9 @@ btr_page_get_father_node_ptr_func(
|
||||
if (btr_node_ptr_get_child_page_no(node_ptr, offsets) != page_no) {
|
||||
rec_t* print_rec;
|
||||
fputs("InnoDB: Dump of the child page:\n", stderr);
|
||||
buf_page_print(page_align(user_rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(user_rec), 0);
|
||||
fputs("InnoDB: Dump of the parent page:\n", stderr);
|
||||
buf_page_print(page_align(node_ptr), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(node_ptr), 0);
|
||||
|
||||
fputs("InnoDB: Corruption of an index tree: table ", stderr);
|
||||
ut_print_name(stderr, NULL, TRUE, index->table_name);
|
||||
@@ -2046,8 +2043,8 @@ btr_page_reorganize_low(
|
||||
max_ins_size2 = page_get_max_insert_size_after_reorganize(page, 1);
|
||||
|
||||
if (data_size1 != data_size2 || max_ins_size1 != max_ins_size2) {
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(temp_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(temp_page, 0);
|
||||
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: page old data size %lu"
|
||||
@@ -4575,7 +4572,7 @@ btr_index_rec_validate(
|
||||
(ulong) rec_get_n_fields_old(rec), (ulong) n);
|
||||
|
||||
if (dump_on_error) {
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: corrupt record ", stderr);
|
||||
rec_print_old(stderr, rec);
|
||||
@@ -4613,8 +4610,7 @@ btr_index_rec_validate(
|
||||
(ulong) i, (ulong) len, (ulong) fixed_size);
|
||||
|
||||
if (dump_on_error) {
|
||||
buf_page_print(page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: corrupt record ", stderr);
|
||||
rec_print_new(stderr, rec, offsets);
|
||||
@@ -4891,8 +4887,8 @@ loop:
|
||||
btr_validate_report2(index, level, block, right_block);
|
||||
fputs("InnoDB: broken FIL_PAGE_NEXT"
|
||||
" or FIL_PAGE_PREV links\n", stderr);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
ret = false;
|
||||
}
|
||||
@@ -4900,8 +4896,8 @@ loop:
|
||||
if (page_is_comp(right_page) != page_is_comp(page)) {
|
||||
btr_validate_report2(index, level, block, right_block);
|
||||
fputs("InnoDB: 'compact' flag mismatch\n", stderr);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
ret = false;
|
||||
|
||||
@@ -4923,8 +4919,8 @@ loop:
|
||||
fputs("InnoDB: records in wrong order"
|
||||
" on adjacent pages\n", stderr);
|
||||
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
fputs("InnoDB: record ", stderr);
|
||||
rec = page_rec_get_prev(page_get_supremum_rec(page));
|
||||
@@ -4972,8 +4968,8 @@ loop:
|
||||
fputs("InnoDB: node pointer to the page is wrong\n",
|
||||
stderr);
|
||||
|
||||
buf_page_print(father_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: node ptr ", stderr);
|
||||
rec_print(stderr, node_ptr, index);
|
||||
@@ -5005,10 +5001,8 @@ loop:
|
||||
|
||||
btr_validate_report1(index, level, block);
|
||||
|
||||
buf_page_print(father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: Error: node ptrs differ"
|
||||
" on levels > 0\n"
|
||||
@@ -5053,15 +5047,9 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
} else {
|
||||
page_t* right_father_page
|
||||
@@ -5079,18 +5067,10 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(right_father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
|
||||
if (page_get_page_no(right_father_page)
|
||||
@@ -5104,18 +5084,10 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(right_father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1982,9 +1982,7 @@ btr_search_validate(void)
|
||||
(ulong) block->curr_left_side);
|
||||
|
||||
if (n_page_dumps < 20) {
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
n_page_dumps++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1034,19 +1034,12 @@ buf_page_is_corrupted(
|
||||
}
|
||||
|
||||
#ifndef UNIV_INNOCHECKSUM
|
||||
/********************************************************************//**
|
||||
Prints a page to stderr. */
|
||||
/** Dump a page to stderr.
|
||||
@param[in] read_buf database page
|
||||
@param[in] zip_size compressed page size, or 0 for uncompressed */
|
||||
UNIV_INTERN
|
||||
void
|
||||
buf_page_print(
|
||||
/*===========*/
|
||||
const byte* read_buf, /*!< in: a database page */
|
||||
ulint zip_size, /*!< in: compressed page size, or
|
||||
0 for uncompressed pages */
|
||||
ulint flags) /*!< in: 0 or
|
||||
BUF_PAGE_PRINT_NO_CRASH or
|
||||
BUF_PAGE_PRINT_NO_FULL */
|
||||
|
||||
buf_page_print(const byte* read_buf, ulint zip_size)
|
||||
{
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
dict_index_t* index;
|
||||
@@ -1057,14 +1050,12 @@ buf_page_print(
|
||||
size = UNIV_PAGE_SIZE;
|
||||
}
|
||||
|
||||
if (!(flags & BUF_PAGE_PRINT_NO_FULL)) {
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: Page dump in ascii and hex (" ULINTPF " bytes):\n",
|
||||
size);
|
||||
ut_print_buf(stderr, read_buf, size);
|
||||
fputs("\nInnoDB: End of page dump\n", stderr);
|
||||
}
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: Page dump in ascii and hex (" ULINTPF " bytes):\n",
|
||||
size);
|
||||
ut_print_buf(stderr, read_buf, size);
|
||||
fputs("\nInnoDB: End of page dump\n", stderr);
|
||||
|
||||
if (zip_size) {
|
||||
/* Print compressed page. */
|
||||
@@ -1219,8 +1210,6 @@ buf_page_print(
|
||||
stderr);
|
||||
break;
|
||||
}
|
||||
|
||||
ut_ad(flags & BUF_PAGE_PRINT_NO_CRASH);
|
||||
}
|
||||
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
@@ -4883,8 +4872,8 @@ database_corrupted:
|
||||
space->name,
|
||||
bpage->space, bpage->offset);
|
||||
|
||||
buf_page_print(frame, buf_page_get_zip_size(bpage),
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(frame,
|
||||
buf_page_get_zip_size(bpage));
|
||||
|
||||
ib_logf(IB_LOG_LEVEL_INFO,
|
||||
"It is also possible that your"
|
||||
|
||||
@@ -800,7 +800,7 @@ buf_dblwr_assert_on_corrupt_block(
|
||||
/*==============================*/
|
||||
const buf_block_t* block) /*!< in: block to check */
|
||||
{
|
||||
buf_page_print(block->frame, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(block->frame, 0);
|
||||
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
|
||||
@@ -742,11 +742,12 @@ fil_space_encrypt(
|
||||
fprintf(stderr, "ok %d corrupted %d corrupted1 %d err %d different %d\n",
|
||||
ok , corrupted, corrupted1, err, different);
|
||||
fprintf(stderr, "src_frame\n");
|
||||
buf_page_print(src_frame, zip_size, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(src_frame, zip_size);
|
||||
fprintf(stderr, "encrypted_frame\n");
|
||||
buf_page_print(tmp, zip_size, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(tmp, zip_size);
|
||||
fprintf(stderr, "decrypted_frame\n");
|
||||
buf_page_print(tmp_mem, zip_size, 0);
|
||||
buf_page_print(tmp_mem, zip_size);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
free(tmp_mem);
|
||||
|
||||
@@ -397,7 +397,8 @@ fil_compress_page(
|
||||
fil_decompress_page(uncomp_page, comp_page, ulong(len), NULL);
|
||||
|
||||
if (buf_page_is_corrupted(false, uncomp_page, 0, space)) {
|
||||
buf_page_print(uncomp_page, 0, 0);
|
||||
buf_page_print(uncomp_page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
ut_free(comp_page);
|
||||
|
||||
@@ -4062,7 +4062,7 @@ ibuf_insert_to_index_page(
|
||||
"InnoDB: but the number of fields does not match!\n",
|
||||
stderr);
|
||||
dump:
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
dtuple_print(stderr, entry);
|
||||
ut_ad(0);
|
||||
@@ -4681,15 +4681,13 @@ ibuf_merge_or_delete_for_page(
|
||||
fputs("InnoDB: cannot retrieve bitmap page\n",
|
||||
stderr);
|
||||
} else {
|
||||
buf_page_print(bitmap_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(bitmap_page, 0);
|
||||
}
|
||||
ibuf_mtr_commit(&mtr);
|
||||
|
||||
fputs("\nInnoDB: Dump of the page:\n", stderr);
|
||||
|
||||
buf_page_print(block->frame, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(block->frame, 0);
|
||||
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: corruption in the tablespace."
|
||||
|
||||
@@ -306,7 +306,7 @@ btr_node_ptr_get_child_page_no(
|
||||
"InnoDB: a nonsensical page number 0"
|
||||
" in a node ptr record at offset %lu\n",
|
||||
(ulong) page_offset(rec));
|
||||
buf_page_print(page_align(rec), 0, 0);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -773,25 +773,13 @@ buf_print(void);
|
||||
/*============*/
|
||||
#endif /* UNIV_DEBUG_PRINT || UNIV_DEBUG || UNIV_BUF_DEBUG */
|
||||
#endif /* !UNIV_HOTBACKUP */
|
||||
enum buf_page_print_flags {
|
||||
/** Do not crash at the end of buf_page_print(). */
|
||||
BUF_PAGE_PRINT_NO_CRASH = 1,
|
||||
/** Do not print the full page dump. */
|
||||
BUF_PAGE_PRINT_NO_FULL = 2
|
||||
};
|
||||
|
||||
/********************************************************************//**
|
||||
Prints a page to stderr. */
|
||||
/** Dump a page to stderr.
|
||||
@param[in] read_buf database page
|
||||
@param[in] zip_size compressed page size, or 0 for uncompressed */
|
||||
UNIV_INTERN
|
||||
void
|
||||
buf_page_print(
|
||||
/*===========*/
|
||||
const byte* read_buf, /*!< in: a database page */
|
||||
ulint zip_size, /*!< in: compressed page size, or
|
||||
0 for uncompressed pages */
|
||||
ulint flags) /*!< in: 0 or
|
||||
BUF_PAGE_PRINT_NO_CRASH or
|
||||
BUF_PAGE_PRINT_NO_FULL */
|
||||
buf_page_print(const byte* read_buf, ulint zip_size)
|
||||
UNIV_COLD MY_ATTRIBUTE((nonnull));
|
||||
/********************************************************************//**
|
||||
Decompress a block.
|
||||
|
||||
@@ -772,7 +772,7 @@ page_rec_get_next_low(
|
||||
(void*) rec,
|
||||
(ulong) page_get_space_id(page),
|
||||
(ulong) page_get_page_no(page));
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
} else if (offs == 0) {
|
||||
|
||||
@@ -1911,7 +1911,7 @@ lock_sec_rec_some_has_impl(
|
||||
|
||||
} else if (!lock_check_trx_id_sanity(max_trx_id, rec, index, offsets)) {
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
/* The page is corrupt: try to avoid a crash by returning 0 */
|
||||
trx_id = 0;
|
||||
|
||||
@@ -903,7 +903,7 @@ page_cur_parse_insert_rec(
|
||||
ut_print_buf(stderr, ptr2, 300);
|
||||
putc('\n', stderr);
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ page_dir_find_owner_slot(
|
||||
fputs("\n"
|
||||
"InnoDB: on that page!\n", stderr);
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
}
|
||||
@@ -613,10 +613,8 @@ page_copy_rec_list_end_no_locks(
|
||||
/* Track an assertion failure reported on the mailing
|
||||
list on June 18th, 2003 */
|
||||
|
||||
buf_page_print(new_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(new_page, 0);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
ut_print_timestamp(stderr);
|
||||
|
||||
fprintf(stderr,
|
||||
@@ -1948,7 +1946,8 @@ page_check_dir(
|
||||
fprintf(stderr,
|
||||
"InnoDB: Page directory corruption:"
|
||||
" infimum not pointed to\n");
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
if (UNIV_UNLIKELY(!page_rec_is_supremum_low(supremum_offs))) {
|
||||
@@ -1956,7 +1955,8 @@ page_check_dir(
|
||||
fprintf(stderr,
|
||||
"InnoDB: Page directory corruption:"
|
||||
" supremum not pointed to\n");
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
}
|
||||
#endif /* !UNIV_HOTBACKUP */
|
||||
@@ -2674,7 +2674,8 @@ func_exit2:
|
||||
(ulong) page_get_space_id(page),
|
||||
(ulong) page_get_page_no(page),
|
||||
index->name);
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
return(ret);
|
||||
|
||||
@@ -1539,6 +1539,7 @@ rec_loop:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -1597,6 +1598,7 @@ skip_lock:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4220,6 +4222,7 @@ wait_table_again:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4310,6 +4313,7 @@ rec_loop:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4345,8 +4349,7 @@ rec_loop:
|
||||
wrong_offs:
|
||||
if (srv_force_recovery == 0 || moves_up == FALSE) {
|
||||
ut_print_timestamp(stderr);
|
||||
buf_page_print(page_align(rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
fprintf(stderr,
|
||||
"\nInnoDB: rec address %p,"
|
||||
" buf block fix count %lu\n",
|
||||
@@ -4591,6 +4594,7 @@ no_gap_lock:
|
||||
prebuilt->new_rec_locks = 1;
|
||||
}
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
case DB_LOCK_WAIT:
|
||||
|
||||
@@ -77,10 +77,9 @@ btr_corruption_report(
|
||||
index->name, index->table_name);
|
||||
if (block->page.zip.data) {
|
||||
buf_page_print(block->page.zip.data,
|
||||
buf_block_get_zip_size(block),
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_block_get_zip_size(block));
|
||||
}
|
||||
buf_page_print(buf_nonnull_block_get_frame(block), 0, 0);
|
||||
buf_page_print(buf_nonnull_block_get_frame(block), 0);
|
||||
}
|
||||
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
@@ -1601,11 +1600,9 @@ btr_page_get_father_node_ptr_func(
|
||||
if (btr_node_ptr_get_child_page_no(node_ptr, offsets) != page_no) {
|
||||
rec_t* print_rec;
|
||||
fputs("InnoDB: Dump of the child page:\n", stderr);
|
||||
buf_page_print(page_align(user_rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(user_rec), 0);
|
||||
fputs("InnoDB: Dump of the parent page:\n", stderr);
|
||||
buf_page_print(page_align(node_ptr), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(node_ptr), 0);
|
||||
|
||||
fputs("InnoDB: Corruption of an index tree: table ", stderr);
|
||||
ut_print_name(stderr, NULL, TRUE, index->table_name);
|
||||
@@ -2080,8 +2077,8 @@ btr_page_reorganize_low(
|
||||
max_ins_size2 = page_get_max_insert_size_after_reorganize(page, 1);
|
||||
|
||||
if (data_size1 != data_size2 || max_ins_size1 != max_ins_size2) {
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(temp_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(temp_page, 0);
|
||||
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: page old data size %lu"
|
||||
@@ -4609,7 +4606,7 @@ btr_index_rec_validate(
|
||||
(ulong) rec_get_n_fields_old(rec), (ulong) n);
|
||||
|
||||
if (dump_on_error) {
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: corrupt record ", stderr);
|
||||
rec_print_old(stderr, rec);
|
||||
@@ -4647,8 +4644,7 @@ btr_index_rec_validate(
|
||||
(ulong) i, (ulong) len, (ulong) fixed_size);
|
||||
|
||||
if (dump_on_error) {
|
||||
buf_page_print(page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: corrupt record ", stderr);
|
||||
rec_print_new(stderr, rec, offsets);
|
||||
@@ -4925,8 +4921,8 @@ loop:
|
||||
btr_validate_report2(index, level, block, right_block);
|
||||
fputs("InnoDB: broken FIL_PAGE_NEXT"
|
||||
" or FIL_PAGE_PREV links\n", stderr);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
ret = false;
|
||||
}
|
||||
@@ -4934,8 +4930,8 @@ loop:
|
||||
if (page_is_comp(right_page) != page_is_comp(page)) {
|
||||
btr_validate_report2(index, level, block, right_block);
|
||||
fputs("InnoDB: 'compact' flag mismatch\n", stderr);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
ret = false;
|
||||
|
||||
@@ -4957,8 +4953,8 @@ loop:
|
||||
fputs("InnoDB: records in wrong order"
|
||||
" on adjacent pages\n", stderr);
|
||||
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(right_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
|
||||
fputs("InnoDB: record ", stderr);
|
||||
rec = page_rec_get_prev(page_get_supremum_rec(page));
|
||||
@@ -5006,8 +5002,8 @@ loop:
|
||||
fputs("InnoDB: node pointer to the page is wrong\n",
|
||||
stderr);
|
||||
|
||||
buf_page_print(father_page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: node ptr ", stderr);
|
||||
rec_print(stderr, node_ptr, index);
|
||||
@@ -5039,10 +5035,8 @@ loop:
|
||||
|
||||
btr_validate_report1(index, level, block);
|
||||
|
||||
buf_page_print(father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
fputs("InnoDB: Error: node ptrs differ"
|
||||
" on levels > 0\n"
|
||||
@@ -5087,15 +5081,9 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
} else {
|
||||
page_t* right_father_page
|
||||
@@ -5113,18 +5101,10 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(right_father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
|
||||
if (page_get_page_no(right_father_page)
|
||||
@@ -5138,18 +5118,10 @@ loop:
|
||||
btr_validate_report1(index, level,
|
||||
block);
|
||||
|
||||
buf_page_print(
|
||||
father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_father_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(
|
||||
right_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(father_page, 0);
|
||||
buf_page_print(right_father_page, 0);
|
||||
buf_page_print(page, 0);
|
||||
buf_page_print(right_page, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2034,9 +2034,7 @@ btr_search_validate_one_table(
|
||||
(ulong) block->curr_left_side);
|
||||
|
||||
if (n_page_dumps < 20) {
|
||||
buf_page_print(
|
||||
page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
n_page_dumps++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -956,19 +956,12 @@ buf_page_is_corrupted(
|
||||
return(false);
|
||||
}
|
||||
|
||||
/********************************************************************//**
|
||||
Prints a page to stderr. */
|
||||
/** Dump a page to stderr.
|
||||
@param[in] read_buf database page
|
||||
@param[in] zip_size compressed page size, or 0 for uncompressed */
|
||||
UNIV_INTERN
|
||||
void
|
||||
buf_page_print(
|
||||
/*===========*/
|
||||
const byte* read_buf, /*!< in: a database page */
|
||||
ulint zip_size, /*!< in: compressed page size, or
|
||||
0 for uncompressed pages */
|
||||
ulint flags) /*!< in: 0 or
|
||||
BUF_PAGE_PRINT_NO_CRASH or
|
||||
BUF_PAGE_PRINT_NO_FULL */
|
||||
|
||||
buf_page_print(const byte* read_buf, ulint zip_size)
|
||||
{
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
dict_index_t* index;
|
||||
@@ -979,14 +972,12 @@ buf_page_print(
|
||||
size = UNIV_PAGE_SIZE;
|
||||
}
|
||||
|
||||
if (!(flags & BUF_PAGE_PRINT_NO_FULL)) {
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: Page dump in ascii and hex (%lu bytes):\n",
|
||||
size);
|
||||
ut_print_buf(stderr, read_buf, size);
|
||||
fputs("\nInnoDB: End of page dump\n", stderr);
|
||||
}
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: Page dump in ascii and hex (%lu bytes):\n",
|
||||
size);
|
||||
ut_print_buf(stderr, read_buf, size);
|
||||
fputs("\nInnoDB: End of page dump\n", stderr);
|
||||
|
||||
if (zip_size) {
|
||||
/* Print compressed page. */
|
||||
@@ -1141,8 +1132,6 @@ buf_page_print(
|
||||
stderr);
|
||||
break;
|
||||
}
|
||||
|
||||
ut_ad(flags & BUF_PAGE_PRINT_NO_CRASH);
|
||||
}
|
||||
|
||||
#ifndef UNIV_HOTBACKUP
|
||||
@@ -4829,8 +4818,8 @@ database_corrupted:
|
||||
space->name,
|
||||
bpage->space, bpage->offset);
|
||||
|
||||
buf_page_print(frame, buf_page_get_zip_size(bpage),
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(frame,
|
||||
buf_page_get_zip_size(bpage));
|
||||
|
||||
ib_logf(IB_LOG_LEVEL_INFO,
|
||||
"It is also possible that your"
|
||||
|
||||
@@ -800,7 +800,7 @@ buf_dblwr_assert_on_corrupt_block(
|
||||
/*==============================*/
|
||||
const buf_block_t* block) /*!< in: block to check */
|
||||
{
|
||||
buf_page_print(block->frame, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(block->frame, 0);
|
||||
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
|
||||
@@ -742,11 +742,12 @@ fil_space_encrypt(
|
||||
fprintf(stderr, "ok %d corrupted %d corrupted1 %d err %d different %d\n",
|
||||
ok , corrupted, corrupted1, err, different);
|
||||
fprintf(stderr, "src_frame\n");
|
||||
buf_page_print(src_frame, zip_size, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(src_frame, zip_size);
|
||||
fprintf(stderr, "encrypted_frame\n");
|
||||
buf_page_print(tmp, zip_size, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(tmp, zip_size);
|
||||
fprintf(stderr, "decrypted_frame\n");
|
||||
buf_page_print(tmp_mem, zip_size, 0);
|
||||
buf_page_print(tmp_mem, zip_size);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
free(tmp_mem);
|
||||
|
||||
@@ -397,7 +397,8 @@ fil_compress_page(
|
||||
fil_decompress_page(uncomp_page, comp_page, ulong(len), NULL);
|
||||
|
||||
if (buf_page_is_corrupted(false, uncomp_page, 0, space)) {
|
||||
buf_page_print(uncomp_page, 0, 0);
|
||||
buf_page_print(uncomp_page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
ut_free(comp_page);
|
||||
|
||||
@@ -4104,7 +4104,7 @@ ibuf_insert_to_index_page(
|
||||
"InnoDB: but the number of fields does not match!\n",
|
||||
stderr);
|
||||
dump:
|
||||
buf_page_print(page, 0, BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
dtuple_print(stderr, entry);
|
||||
ut_ad(0);
|
||||
@@ -4723,15 +4723,13 @@ ibuf_merge_or_delete_for_page(
|
||||
fputs("InnoDB: cannot retrieve bitmap page\n",
|
||||
stderr);
|
||||
} else {
|
||||
buf_page_print(bitmap_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(bitmap_page, 0);
|
||||
}
|
||||
ibuf_mtr_commit(&mtr);
|
||||
|
||||
fputs("\nInnoDB: Dump of the page:\n", stderr);
|
||||
|
||||
buf_page_print(block->frame, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(block->frame, 0);
|
||||
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: corruption in the tablespace."
|
||||
|
||||
@@ -306,7 +306,7 @@ btr_node_ptr_get_child_page_no(
|
||||
"InnoDB: a nonsensical page number 0"
|
||||
" in a node ptr record at offset %lu\n",
|
||||
(ulong) page_offset(rec));
|
||||
buf_page_print(page_align(rec), 0, 0);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -758,26 +758,15 @@ buf_print(void);
|
||||
/*============*/
|
||||
#endif /* UNIV_DEBUG_PRINT || UNIV_DEBUG || UNIV_BUF_DEBUG */
|
||||
#endif /* !UNIV_HOTBACKUP */
|
||||
enum buf_page_print_flags {
|
||||
/** Do not crash at the end of buf_page_print(). */
|
||||
BUF_PAGE_PRINT_NO_CRASH = 1,
|
||||
/** Do not print the full page dump. */
|
||||
BUF_PAGE_PRINT_NO_FULL = 2
|
||||
};
|
||||
|
||||
/********************************************************************//**
|
||||
Prints a page to stderr. */
|
||||
/** Dump a page to stderr.
|
||||
@param[in] read_buf database page
|
||||
@param[in] zip_size compressed page size, or 0 for uncompressed */
|
||||
UNIV_INTERN
|
||||
void
|
||||
buf_page_print(
|
||||
/*===========*/
|
||||
const byte* read_buf, /*!< in: a database page */
|
||||
ulint zip_size, /*!< in: compressed page size, or
|
||||
0 for uncompressed pages */
|
||||
ulint flags) /*!< in: 0 or
|
||||
BUF_PAGE_PRINT_NO_CRASH or
|
||||
BUF_PAGE_PRINT_NO_FULL */
|
||||
UNIV_COLD;
|
||||
buf_page_print(const byte* read_buf, ulint zip_size)
|
||||
UNIV_COLD MY_ATTRIBUTE((nonnull));
|
||||
|
||||
/********************************************************************//**
|
||||
Decompress a block.
|
||||
@return TRUE if successful */
|
||||
|
||||
@@ -771,7 +771,7 @@ page_rec_get_next_low(
|
||||
(void*) rec,
|
||||
(ulong) page_get_space_id(page),
|
||||
(ulong) page_get_page_no(page));
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
} else if (offs == 0) {
|
||||
|
||||
@@ -1921,7 +1921,7 @@ lock_sec_rec_some_has_impl(
|
||||
|
||||
} else if (!lock_check_trx_id_sanity(max_trx_id, rec, index, offsets)) {
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
/* The page is corrupt: try to avoid a crash by returning 0 */
|
||||
trx_id = 0;
|
||||
|
||||
@@ -903,7 +903,7 @@ page_cur_parse_insert_rec(
|
||||
ut_print_buf(stderr, ptr2, 300);
|
||||
putc('\n', stderr);
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ page_dir_find_owner_slot(
|
||||
fputs("\n"
|
||||
"InnoDB: on that page!\n", stderr);
|
||||
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
|
||||
ut_error;
|
||||
}
|
||||
@@ -618,10 +618,8 @@ page_copy_rec_list_end_no_locks(
|
||||
/* Track an assertion failure reported on the mailing
|
||||
list on June 18th, 2003 */
|
||||
|
||||
buf_page_print(new_page, 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(new_page, 0);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
ut_print_timestamp(stderr);
|
||||
|
||||
fprintf(stderr,
|
||||
@@ -1953,7 +1951,8 @@ page_check_dir(
|
||||
fprintf(stderr,
|
||||
"InnoDB: Page directory corruption:"
|
||||
" infimum not pointed to\n");
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
if (UNIV_UNLIKELY(!page_rec_is_supremum_low(supremum_offs))) {
|
||||
@@ -1961,7 +1960,8 @@ page_check_dir(
|
||||
fprintf(stderr,
|
||||
"InnoDB: Page directory corruption:"
|
||||
" supremum not pointed to\n");
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
}
|
||||
#endif /* !UNIV_HOTBACKUP */
|
||||
@@ -2679,7 +2679,8 @@ func_exit2:
|
||||
(ulong) page_get_space_id(page),
|
||||
(ulong) page_get_page_no(page),
|
||||
index->name);
|
||||
buf_page_print(page, 0, 0);
|
||||
buf_page_print(page, 0);
|
||||
ut_ad(0);
|
||||
}
|
||||
|
||||
return(ret);
|
||||
|
||||
@@ -1545,6 +1545,7 @@ rec_loop:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -1603,6 +1604,7 @@ skip_lock:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4186,6 +4188,7 @@ wait_table_again:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4281,6 +4284,7 @@ rec_loop:
|
||||
switch (err) {
|
||||
case DB_SUCCESS_LOCKED_REC:
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
@@ -4323,8 +4327,7 @@ wrong_offs:
|
||||
if ((srv_force_recovery == 0 || moves_up == FALSE)
|
||||
&& srv_pass_corrupt_table <= 1) {
|
||||
ut_print_timestamp(stderr);
|
||||
buf_page_print(page_align(rec), 0,
|
||||
BUF_PAGE_PRINT_NO_CRASH);
|
||||
buf_page_print(page_align(rec), 0);
|
||||
fprintf(stderr,
|
||||
"\nInnoDB: rec address %p,"
|
||||
" buf block fix count %lu\n",
|
||||
@@ -4569,6 +4572,7 @@ no_gap_lock:
|
||||
prebuilt->new_rec_locks = 1;
|
||||
}
|
||||
err = DB_SUCCESS;
|
||||
/* fall through */
|
||||
case DB_SUCCESS:
|
||||
break;
|
||||
case DB_LOCK_WAIT:
|
||||
|
||||
Reference in New Issue
Block a user