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/fil | |
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/fil')
-rw-r--r-- | storage/innobase/fil/fil0fil.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c index 0367484ebf0..b30e8056c0a 100644 --- a/storage/innobase/fil/fil0fil.c +++ b/storage/innobase/fil/fil0fil.c @@ -458,6 +458,21 @@ fil_space_get_by_id( } /*******************************************************************//** +Returns the table space name for a given id, NULL if not found. */ +const char* +fil_space_get_name( +/*================*/ + ulint id) /*!< in: space id */ +{ + fil_space_t* space; + + mutex_enter(&fil_system->mutex); + space = fil_space_get_by_id(id); + mutex_exit(&fil_system->mutex); + + return (space == NULL ? NULL : space->name); +} +/*******************************************************************//** Returns the table space by a given name, NULL if not found. */ UNIV_INLINE fil_space_t* |