Navigation Menu

Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 25, 2014
1 parent 470865e commit a5add22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ha_mroonga.cpp
Expand Up @@ -12827,16 +12827,14 @@ bool ha_mroonga::storage_check_if_incompatible_data(
HA_CREATE_INFO *create_info, uint table_changes)
{
MRN_DBUG_ENTER_METHOD();
bool is_incompatible = COMPATIBLE_DATA_YES;
uint n = table_share->fields;
for (uint i = 0; i < n; i++) {
Field *field = table->field[i];
if (field->flags & FIELD_IS_RENAMED) {
is_incompatible = COMPATIBLE_DATA_NO;
break;
return COMPATIBLE_DATA_NO;
}
}
DBUG_RETURN(is_incompatible);
DBUG_RETURN(COMPATIBLE_DATA_YES);
}

bool ha_mroonga::check_if_incompatible_data(
Expand Down

0 comments on commit a5add22

Please sign in to comment.