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

Function vers_insert_history_row

sql/sql_insert.cc:2038–2053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2036*/
2037
2038int vers_insert_history_row(TABLE *table)
2039{
2040 DBUG_ASSERT(table->versioned(VERS_TIMESTAMP));
2041 DBUG_ASSERT(table->vers_write);
2042 restore_record(table,record[1]);
2043
2044 // Set Sys_end to now()
2045 table->vers_update_end();
2046
2047 Field *row_start= table->vers_start_field();
2048 Field *row_end= table->vers_end_field();
2049 if (row_start->cmp(row_start->ptr, row_end->ptr) >= 0)
2050 return 0;
2051
2052 return table->file->ha_write_row(table->record[0]);
2053}
2054
2055/*
2056 Retrieve the old (duplicated) row into record[1] to be able to

Callers 6

replace_rowMethod · 0.85
update_single_tableMethod · 0.85
send_dataMethod · 0.85
do_updatesMethod · 0.85
do_exec_rowMethod · 0.85

Calls 6

ha_write_rowMethod · 0.80
versionedMethod · 0.45
vers_update_endMethod · 0.45
vers_start_fieldMethod · 0.45
vers_end_fieldMethod · 0.45
cmpMethod · 0.45

Tested by

no test coverage detected