1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Style: condition rewrite

This commit is contained in:
kevg
2017-02-08 21:54:13 +03:00
committed by Aleksey Midenkov
parent e7ac369a72
commit 5853266fab

View File

@ -607,9 +607,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
if (table->versioned())
{
bool row_is_alive= table->vers_end_field()->is_max();
if (truncate_history && row_is_alive)
continue;
if (!truncate_history && !row_is_alive)
if (truncate_history)
{
if (row_is_alive)
continue;
}
else if (!row_is_alive)
continue;
}