MCPcopy Create free account
hub / github.com/MariaDB/server / update

Method update

sql/table.cc:10720–10739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10718}
10719
10720bool 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)
10742bool TR_table::query(ulonglong trx_id)

Callers 11

ha_commit_transFunction · 0.45
write_gtid_eventMethod · 0.45
session_updateMethod · 0.45
global_updateMethod · 0.45
gtid_state_from_posFunction · 0.45
setMethod · 0.45

Calls 7

transaction_timeMethod · 0.80
query_startMethod · 0.80
query_start_sec_partMethod · 0.80
ha_write_rowMethod · 0.80
storeFunction · 0.70
set_timeMethod · 0.45
print_errorMethod · 0.45

Tested by

no test coverage detected