buf0buf.c:

  Do not try to resolve the table name of a corrupt page if the code is in ibbackup, i.e., the dict system is not initialized
parent 28b6e026
...@@ -324,13 +324,21 @@ buf_page_print( ...@@ -324,13 +324,21 @@ buf_page_print(
ut_dulint_get_high(btr_page_get_index_id(read_buf)), ut_dulint_get_high(btr_page_get_index_id(read_buf)),
ut_dulint_get_low(btr_page_get_index_id(read_buf))); ut_dulint_get_low(btr_page_get_index_id(read_buf)));
index = dict_index_find_on_id_low( /* If the code is in ibbackup, dict_sys may be uninitialized,
i.e., NULL */
if (dict_sys != NULL) {
index = dict_index_find_on_id_low(
btr_page_get_index_id(read_buf)); btr_page_get_index_id(read_buf));
if (index) { if (index) {
fprintf(stderr, "InnoDB: and table %s index %s\n", fprintf(stderr,
"InnoDB: and table %s index %s\n",
index->table_name, index->table_name,
index->name); index->name);
}
} }
} else if (fil_page_get_type(read_buf) == FIL_PAGE_INODE) { } else if (fil_page_get_type(read_buf) == FIL_PAGE_INODE) {
fprintf(stderr, "InnoDB: Page may be an 'inode' page\n"); fprintf(stderr, "InnoDB: Page may be an 'inode' page\n");
} else if (fil_page_get_type(read_buf) == FIL_PAGE_IBUF_FREE_LIST) { } else if (fil_page_get_type(read_buf) == FIL_PAGE_IBUF_FREE_LIST) {
......
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