branches/zip: buf_page_print(): Clean up the code #ifdef UNIV_HOTBACKUP.

This commit is contained in:
marko 2009-03-23 10:05:47 +00:00
parent 412893d6f3
commit 83e98148b5

View file

@ -572,16 +572,7 @@ buf_page_print(
btr_page_get_index_id(read_buf)), btr_page_get_index_id(read_buf)),
(ulong) ut_dulint_get_low( (ulong) ut_dulint_get_low(
btr_page_get_index_id(read_buf))); btr_page_get_index_id(read_buf)));
#ifndef UNIV_HOTBACKUP
#ifdef UNIV_HOTBACKUP
/* If the code is in ibbackup, dict_sys may be uninitialized,
i.e., NULL */
if (dict_sys == NULL) {
break;
}
#endif /* UNIV_HOTBACKUP */
index = dict_index_find_on_id_low( 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) {
@ -589,6 +580,7 @@ buf_page_print(
dict_index_name_print(stderr, NULL, index); dict_index_name_print(stderr, NULL, index);
fputs(")\n", stderr); fputs(")\n", stderr);
} }
#endif /* !UNIV_HOTBACKUP */
break; break;
case FIL_PAGE_INODE: case FIL_PAGE_INODE:
fputs("InnoDB: Page may be an 'inode' page\n", stderr); fputs("InnoDB: Page may be an 'inode' page\n", stderr);