Commit ccddb4f7 authored by Eugene Kosov's avatar Eugene Kosov

Misc: simplify code

parent b4cd2d3c
...@@ -10013,14 +10013,9 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, ...@@ -10013,14 +10013,9 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
if (make_versioned) if (make_versioned)
{ {
to_sys_trx_start->set_notnull(to_sys_trx_start->null_offset()); to_sys_trx_start->set_notnull();
// TODO: write directly to record bypassing the same checks on every call
to_sys_trx_start->store_time(&query_start); to_sys_trx_start->store_time(&query_start);
to_sys_trx_end->set_max();
static const timeval max_tv= {TIMESTAMP_MAX_VALUE, TIME_MAX_SECOND_PART};
static const uint dec= TIME_SECOND_PART_DIGITS;
to_sys_trx_end->set_notnull(to_sys_trx_end->null_offset());
my_timestamp_to_binary(&max_tv, to_sys_trx_end->ptr, dec);
} }
else if (make_unversioned) else if (make_unversioned)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment