summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-04-09 17:38:21 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-04-09 17:38:21 +0530
commit1ac4d0c168c3d438752e3a72c79d29a6cbd5a127 (patch)
treeae90af390ffc96ac26d002d4f59cf38e4e59dd31
parent5a3151bcda2f279091a1e2f049a7d11cd91065d6 (diff)
downloadmariadb-git-1ac4d0c168c3d438752e3a72c79d29a6cbd5a127.tar.gz
BtrBulk::table_name(): Return the table name while displaying
table name for fts diagnostics
-rw-r--r--storage/innobase/include/btr0bulk.h2
-rw-r--r--storage/innobase/row/row0ftsort.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/include/btr0bulk.h b/storage/innobase/include/btr0bulk.h
index 6687d29593a..911a2726422 100644
--- a/storage/innobase/include/btr0bulk.h
+++ b/storage/innobase/include/btr0bulk.h
@@ -326,7 +326,7 @@ public:
/** Re-latch all latches */
void latch();
- dict_index_t* index() { return m_index; }
+ table_name_t table_name() { return m_index->table->name; }
private:
/** Insert a tuple to a page in a level
diff --git a/storage/innobase/row/row0ftsort.cc b/storage/innobase/row/row0ftsort.cc
index 39b31c153ad..2ca930e0934 100644
--- a/storage/innobase/row/row0ftsort.cc
+++ b/storage/innobase/row/row0ftsort.cc
@@ -1221,7 +1221,7 @@ row_merge_write_fts_word(
if (UNIV_UNLIKELY(error != DB_SUCCESS)) {
ib::error() << "Failed to write word to FTS auxiliary"
" index table "
- << ins_ctx->btr_bulk->index()->table->name
+ << ins_ctx->btr_bulk->table_name()
<< ", error " << error;
ret = error;
}