diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-03-04 14:05:23 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-03-04 14:05:23 +0200 |
commit | b308fe3b595e1961f7ecd29cfc3b0cc60ea4b5d8 (patch) | |
tree | f446ac8d4a5f16ab4f1d8994ec71e3773c517efd /innobase/buf | |
parent | 7a88d2ccbdf872e200784a7bdfe497c64d0e4449 (diff) | |
download | mariadb-git-b308fe3b595e1961f7ecd29cfc3b0cc60ea4b5d8.tar.gz |
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
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0buf.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c index c9a5ec5307f..bbce52f0b00 100644 --- a/innobase/buf/buf0buf.c +++ b/innobase/buf/buf0buf.c @@ -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) { |