[Groonga-mysql-commit] mroonga/mroonga at a5add22 [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 25 10:00:13 JST 2014


Kouhei Sutou	2014-07-25 10:00:13 +0900 (Fri, 25 Jul 2014)

  New Revision: a5add22f458cb1ebe6068753e1d4956be5356073
  https://github.com/mroonga/mroonga/commit/a5add22f458cb1ebe6068753e1d4956be5356073

  Message:
    Simplify

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -4)
===================================================================
--- ha_mroonga.cpp    2014-07-24 23:19:28 +0900 (3c96fd5)
+++ ha_mroonga.cpp    2014-07-25 10:00:13 +0900 (55b202d)
@@ -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(
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index