1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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()) if (table->versioned())
{ {
bool row_is_alive= table->vers_end_field()->is_max(); bool row_is_alive= table->vers_end_field()->is_max();
if (truncate_history && row_is_alive) if (truncate_history)
continue; {
if (!truncate_history && !row_is_alive) if (row_is_alive)
continue;
}
else if (!row_is_alive)
continue; continue;
} }