Commit f751b308 authored by Aleksey Midenkov's avatar Aleksey Midenkov

Style: comment fixes

parent 01858724
...@@ -9449,8 +9449,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -9449,8 +9449,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
{ {
if (table->versioned_by_sql()) if (table->versioned_by_sql())
{ {
// Failure of this function may result in corruption of // Failure of this function may result in corruption of an original table.
// an original table.
vers_reset_alter_copy(thd, table); vers_reset_alter_copy(thd, table);
} }
} }
...@@ -9987,15 +9986,13 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, ...@@ -9987,15 +9986,13 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
} }
else if (make_unversioned) else if (make_unversioned)
{ {
// Drop history rows.
if (!from_sys_trx_end->is_max()) if (!from_sys_trx_end->is_max())
continue; continue; // Drop history rows.
} }
else if (keep_versioned && thd->variables.vers_ddl_survival) else if (keep_versioned && thd->variables.vers_ddl_survival)
{ {
// Do not copy history rows.
if (!from_sys_trx_end->is_max()) if (!from_sys_trx_end->is_max())
continue; continue; // Do not copy history rows.
store_record(from, record[1]); store_record(from, record[1]);
from->vers_end_field()->store_time(&now); from->vers_end_field()->store_time(&now);
......
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