Cleanup: Remove trx_get_id_for_print()

Any transaction that has requested a lock must have trx->id!=0.

trx_print_low(): Distinguish non-locking or inactive transaction
objects by displaying the pointer in parentheses.

fill_trx_row(): Do not try to map trx->id to a pointer-based value.
This commit is contained in:
Marko Mäkelä 2021-01-26 08:39:11 +02:00
commit 469da6c34d
6 changed files with 11 additions and 67 deletions

View file

@ -5377,7 +5377,7 @@ btr_cur_del_mark_set_clust_rec(
DBUG_LOG("ib_cur",
"delete-mark clust " << index->table->name
<< " (" << index->id << ") by "
<< ib::hex(trx_get_id_for_print(trx)) << ": "
<< ib::hex(trx->id) << ": "
<< rec_printer(rec, offsets).str());
if (dict_index_is_online_ddl(index)) {