diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-04-28 08:30:05 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-04-28 08:30:05 +0300 |
commit | 772aa0c57525706a9f6e3285005ff22fc115b647 (patch) | |
tree | adc43e0d58189993318c912ad2f9c4fdcb595cfb /storage/innobase/include/btr0cur.h | |
parent | 53612e7787f4b462113a82b25834b1e18a0c051b (diff) | |
download | mariadb-git-772aa0c57525706a9f6e3285005ff22fc115b647.tar.gz |
MDEV-6160: InnoDB: Failing assertion: page_is_comp(next_page) == page_is_comp(page)
This is not yet a fix. This is change to print additional information at the point
when this assertion is going to happen. Print as much information about the pages
and index to find out why next page is not a compact format.
Diffstat (limited to 'storage/innobase/include/btr0cur.h')
-rw-r--r-- | storage/innobase/include/btr0cur.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/innobase/include/btr0cur.h b/storage/innobase/include/btr0cur.h index 78637ea7295..8c750568c6e 100644 --- a/storage/innobase/include/btr0cur.h +++ b/storage/innobase/include/btr0cur.h @@ -825,6 +825,28 @@ extern ulint btr_cur_n_sea_old; extern uint btr_cur_limit_optimistic_insert_debug; #endif /* UNIV_DEBUG */ +/*******************************************************************//** +Print information about old page and a new page on a B-tree when +we note that page types do not match.*/ +void +btr_pages_info( + page_t* old_page, /*!< in: Page where we were */ + page_t* new_page, /*!< in: Page where we travelsed */ + ulint space_id, /*!< in: space id */ + ulint zip_size, /*!< in: zip size */ + ulint page_no, /*!< in: Page id where travelsed */ + ulint latch_mode, /*!< in: Used latch mode */ + dict_index_t* index, /*!< in: Used index */ + ulint old_next_page_no, /*!< in: Next page number from old page */ + ulint old_prev_page_no, /*!< in: Prev page number from old page */ + ulint new_space_id, /*!< in: Space id of new page */ + ulint new_zip_size, /*!< in: Zip size of new page */ + ulint new_next_page_no, /*!< in: Next page number from new page */ + ulint new_prev_page_no, /*!< in: Prev page number from new page */ + mtr_t* mtr, /*!< in: mini transaction */ + const char* file, /*!< in: file name where called */ + ulint line); /*!< in: line number where called */ + #ifndef UNIV_NONINL #include "btr0cur.ic" #endif |