From 1ac4d0c168c3d438752e3a72c79d29a6cbd5a127 Mon Sep 17 00:00:00 2001 From: Thirunarayanan Balathandayuthapani Date: Fri, 9 Apr 2021 17:38:21 +0530 Subject: BtrBulk::table_name(): Return the table name while displaying table name for fts diagnostics --- storage/innobase/include/btr0bulk.h | 2 +- storage/innobase/row/row0ftsort.cc | 2 +- 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; } -- cgit v1.2.1