mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
MDEV-11106: Improve error messages when importing tablespaces
Add error message when used index_id in index page is not found from configuration file.
This commit is contained in:
parent
84ce681969
commit
de0f77a2a8
2 changed files with 18 additions and 0 deletions
|
|
@ -1896,6 +1896,15 @@ PageConverter::update_index_page(
|
|||
row_index_t* index = find_index(id);
|
||||
|
||||
if (index == 0) {
|
||||
ib_logf(IB_LOG_LEVEL_ERROR,
|
||||
"Page for tablespace %lu is "
|
||||
" index page with id %lu but that"
|
||||
" index is not found from configuration file."
|
||||
" Current index name %s and id %lu.",
|
||||
m_space,
|
||||
id,
|
||||
m_index->m_name,
|
||||
m_index->m_id);
|
||||
m_index = 0;
|
||||
return(DB_CORRUPTION);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1899,6 +1899,15 @@ PageConverter::update_index_page(
|
|||
row_index_t* index = find_index(id);
|
||||
|
||||
if (index == 0) {
|
||||
ib_logf(IB_LOG_LEVEL_ERROR,
|
||||
"Page for tablespace %lu is "
|
||||
" index page with id %lu but that"
|
||||
" index is not found from configuration file."
|
||||
" Current index name %s and id %lu.",
|
||||
m_space,
|
||||
id,
|
||||
m_index->m_name,
|
||||
m_index->m_id);
|
||||
m_index = 0;
|
||||
return(DB_CORRUPTION);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue