mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
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
This commit is contained in:
@@ -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)));
|
||||
|
||||
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));
|
||||
if (index) {
|
||||
fprintf(stderr, "InnoDB: and table %s index %s\n",
|
||||
if (index) {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user