Commit e89468aa authored by unknown's avatar unknown

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


innobase/buf/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 d292ce6b
......@@ -324,13 +324,21 @@ buf_page_print(
ut_dulint_get_high(btr_page_get_index_id(read_buf)),
ut_dulint_get_low(btr_page_get_index_id(read_buf)));
/* 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));
if (index) {
fprintf(stderr, "InnoDB: and table %s index %s\n",
fprintf(stderr,
"InnoDB: and table %s index %s\n",
index->table_name,
index->name);
}
}
} else if (fil_page_get_type(read_buf) == FIL_PAGE_INODE) {
fprintf(stderr, "InnoDB: Page may be an 'inode' page\n");
} 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