Skip to content

Commit 9186cae

Browse files
kevgsmidenok
authored andcommitted
Style: related to DBUG_ASSERT usage
1 parent 84e1971 commit 9186cae

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sql/table.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7568,12 +7568,10 @@ void TABLE::vers_update_fields()
75687568
{
75697569
DBUG_ENTER("vers_update_fields");
75707570

7571-
DBUG_ASSERT(versioned());
7572-
bool res= !vers_start_field()->set_time();
7573-
DBUG_ASSERT(res);
7574-
res= !vers_end_field()->set_max_timestamp();
7575-
DBUG_ASSERT(res);
7576-
(void)res;
7571+
if (vers_start_field()->set_time())
7572+
DBUG_ASSERT(0);
7573+
if (vers_end_field()->set_max_timestamp())
7574+
DBUG_ASSERT(0);
75777575

75787576
bitmap_set_bit(write_set, vers_start_field()->field_index);
75797577
bitmap_set_bit(write_set, vers_end_field()->field_index);

0 commit comments

Comments
 (0)