Skip to content

Commit 5853266

Browse files
kevgsmidenok
authored andcommitted
Style: condition rewrite
1 parent e7ac369 commit 5853266

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sql/sql_delete.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
607607
if (table->versioned())
608608
{
609609
bool row_is_alive= table->vers_end_field()->is_max();
610-
if (truncate_history && row_is_alive)
611-
continue;
612-
if (!truncate_history && !row_is_alive)
610+
if (truncate_history)
611+
{
612+
if (row_is_alive)
613+
continue;
614+
}
615+
else if (!row_is_alive)
613616
continue;
614617
}
615618

0 commit comments

Comments
 (0)