Commit 377cd520 authored by Marko Mäkelä's avatar Marko Mäkelä

Pretty-print table names in some error messages

parent 6d377a52
......@@ -782,7 +782,7 @@ DECLARE_THREAD(btr_defragment_thread)(void*)
err = dict_stats_save_defrag_stats(index);
if (err != DB_SUCCESS) {
ib::error() << "Saving defragmentation stats for table "
<< index->table->name.m_name
<< index->table->name
<< " index " << index->name()
<< " failed with error " << err;
} else {
......@@ -790,7 +790,7 @@ DECLARE_THREAD(btr_defragment_thread)(void*)
if (err != DB_SUCCESS) {
ib::error() << "Saving defragmentation summary for table "
<< index->table->name.m_name
<< index->table->name
<< " index " << index->name()
<< " failed with error " << err;
}
......
......@@ -574,7 +574,7 @@ dict_table_close_and_drop(
if (err != DB_SUCCESS) {
ib::error() << "At " << __FILE__ << ":" << __LINE__
<< " row_merge_drop_table returned error: " << err
<< " table: " << table->name.m_name;
<< " table: " << table->name;
}
}
......
......@@ -9086,12 +9086,11 @@ ha_innobase::commit_inplace_alter_table(
error = row_merge_drop_table(trx, ctx->old_table);
if (error != DB_SUCCESS) {
ib::error() << "Inplace alter table " << ctx->old_table->name.m_name
ib::error() << "Inplace alter table " << ctx->old_table->name
<< " dropping copy of the old table failed error "
<< error
<< ". tmp_name " << (ctx->tmp_name ? ctx->tmp_name : "N/A")
<< " new_table " << (ctx->new_table ? ctx->new_table->name.m_name
: "N/A");
<< " new_table " << ctx->new_table->name;
}
trx_commit_for_mysql(trx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment