[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Check whether HA_CAN_REPAIR is available

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:42:57 JST 2012


Kouhei Sutou	2012-04-29 08:48:21 +0900 (Sun, 29 Apr 2012)

  New Revision: 92808054462382498928578718e42667f2678ed7
  https://github.com/mroonga/mroonga/commit/92808054462382498928578718e42667f2678ed7

  Log:
    Check whether HA_CAN_REPAIR is available
    
    HA_CAN_REPAIR isn't available on MySQL 5.1

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+4 -2)
===================================================================
--- ha_mroonga.cpp    2012-04-29 08:40:54 +0900 (3764beb)
+++ ha_mroonga.cpp    2012-04-29 08:48:21 +0900 (ab46374)
@@ -2001,12 +2001,14 @@ ulonglong ha_mroonga::storage_table_flags() const
     HA_CAN_BIT_FIELD |
     HA_DUPLICATE_POS |
     HA_CAN_GEOMETRY |
-    HA_CAN_RTREEKEYS |
-    HA_CAN_REPAIR;
+    HA_CAN_RTREEKEYS;
     //HA_HAS_RECORDS;
 #ifdef HA_MUST_USE_TABLE_CONDITION_PUSHDOWN
   flags |= HA_MUST_USE_TABLE_CONDITION_PUSHDOWN;
 #endif
+#ifdef HA_CAN_REPAIR
+  table_flags |= HA_CAN_REPAIR;
+#endif
   DBUG_RETURN(flags);
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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