Pretty-print table names in some error messages
This commit is contained in:
parent
6d377a523c
commit
377cd52064
@ -782,7 +782,7 @@ DECLARE_THREAD(btr_defragment_thread)(void*)
|
|||||||
err = dict_stats_save_defrag_stats(index);
|
err = dict_stats_save_defrag_stats(index);
|
||||||
if (err != DB_SUCCESS) {
|
if (err != DB_SUCCESS) {
|
||||||
ib::error() << "Saving defragmentation stats for table "
|
ib::error() << "Saving defragmentation stats for table "
|
||||||
<< index->table->name.m_name
|
<< index->table->name
|
||||||
<< " index " << index->name()
|
<< " index " << index->name()
|
||||||
<< " failed with error " << err;
|
<< " failed with error " << err;
|
||||||
} else {
|
} else {
|
||||||
@ -790,7 +790,7 @@ DECLARE_THREAD(btr_defragment_thread)(void*)
|
|||||||
|
|
||||||
if (err != DB_SUCCESS) {
|
if (err != DB_SUCCESS) {
|
||||||
ib::error() << "Saving defragmentation summary for table "
|
ib::error() << "Saving defragmentation summary for table "
|
||||||
<< index->table->name.m_name
|
<< index->table->name
|
||||||
<< " index " << index->name()
|
<< " index " << index->name()
|
||||||
<< " failed with error " << err;
|
<< " failed with error " << err;
|
||||||
}
|
}
|
||||||
|
@ -574,7 +574,7 @@ dict_table_close_and_drop(
|
|||||||
if (err != DB_SUCCESS) {
|
if (err != DB_SUCCESS) {
|
||||||
ib::error() << "At " << __FILE__ << ":" << __LINE__
|
ib::error() << "At " << __FILE__ << ":" << __LINE__
|
||||||
<< " row_merge_drop_table returned error: " << err
|
<< " row_merge_drop_table returned error: " << err
|
||||||
<< " table: " << table->name.m_name;
|
<< " table: " << table->name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9086,12 +9086,11 @@ foreign_fail:
|
|||||||
error = row_merge_drop_table(trx, ctx->old_table);
|
error = row_merge_drop_table(trx, ctx->old_table);
|
||||||
|
|
||||||
if (error != DB_SUCCESS) {
|
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 "
|
<< " dropping copy of the old table failed error "
|
||||||
<< error
|
<< error
|
||||||
<< ". tmp_name " << (ctx->tmp_name ? ctx->tmp_name : "N/A")
|
<< ". tmp_name " << (ctx->tmp_name ? ctx->tmp_name : "N/A")
|
||||||
<< " new_table " << (ctx->new_table ? ctx->new_table->name.m_name
|
<< " new_table " << ctx->new_table->name;
|
||||||
: "N/A");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trx_commit_for_mysql(trx);
|
trx_commit_for_mysql(trx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user