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.
This commit is contained in:
Jan Lindström 2014-04-28 08:30:05 +03:00
commit 772aa0c575
10 changed files with 666 additions and 36 deletions

View file

@ -467,6 +467,21 @@ fil_space_get_by_id(
return(space);
}
/*******************************************************************//**
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