[Commits] 08a4693: MDEV-11106: Improve error messages when importing tablespaces

Jan Lindström jan.lindstrom at mariadb.com
Fri Oct 28 09:27:44 EEST 2016


revision-id: 08a469337fe2b4c1f6a393351d4307acb55ba827 (mariadb-10.1.18-19-g08a4693)
parent(s): bc5434286bf3c429bdd2520b702ba60ace658243
author: Jan Lindström
committer: Jan Lindström
timestamp: 2016-10-28 09:27:03 +0300
message:

MDEV-11106: Improve error messages when importing tablespaces

Add error message when used index_id in index page is not found
from configuration file.

---
 storage/innobase/row/row0import.cc | 9 +++++++++
 storage/xtradb/row/row0import.cc   | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/storage/innobase/row/row0import.cc b/storage/innobase/row/row0import.cc
index 6dd3c4e..3a47e3f 100644
--- a/storage/innobase/row/row0import.cc
+++ b/storage/innobase/row/row0import.cc
@@ -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);
 		}
diff --git a/storage/xtradb/row/row0import.cc b/storage/xtradb/row/row0import.cc
index 4c7cb7d..d45ce90 100644
--- a/storage/xtradb/row/row0import.cc
+++ b/storage/xtradb/row/row0import.cc
@@ -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);
 		}


More information about the commits mailing list