| 10718 | } |
| 10719 | |
| 10720 | bool TR_table::update(ulonglong start_id, ulonglong end_id) |
| 10721 | { |
| 10722 | if (!table && open()) |
| 10723 | return true; |
| 10724 | |
| 10725 | store(FLD_BEGIN_TS, thd->transaction_time()); |
| 10726 | thd->set_time(); |
| 10727 | my_timeval end_time= { thd->query_start(), thd->query_start_sec_part()}; |
| 10728 | store(FLD_TRX_ID, start_id); |
| 10729 | store(FLD_COMMIT_ID, end_id); |
| 10730 | store(FLD_COMMIT_TS, end_time); |
| 10731 | store_iso_level(thd->tx_isolation); |
| 10732 | |
| 10733 | int error= table->file->ha_write_row(table->record[0]); |
| 10734 | if (unlikely(error)) |
| 10735 | table->file->print_error(error, MYF(0)); |
| 10736 | /* extra() is used to apply the bulk insert operation |
| 10737 | on mysql/transaction_registry table */ |
| 10738 | return error; |
| 10739 | } |
| 10740 | |
| 10741 | #define newx new (thd->mem_root) |
| 10742 | bool TR_table::query(ulonglong trx_id) |
no test coverage detected