[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [wrapper] add HA_CAN_REPAIR availability check. refs #1191

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:33:23 JST 2012


Kouhei Sutou	2011-12-09 09:33:39 +0900 (Fri, 09 Dec 2011)

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

  Log:
    [wrapper] add HA_CAN_REPAIR availability check. refs #1191
    
    Reported by Kazuhiko Shiozaki. Thanks!!!

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -1)
===================================================================
--- ha_mroonga.cc    2011-12-09 00:20:14 +0900 (5fc04d2)
+++ ha_mroonga.cc    2011-12-09 09:33:39 +0900 (2007f16)
@@ -1377,7 +1377,10 @@ ulonglong ha_mroonga::wrapper_table_flags() const
   MRN_SET_WRAP_TABLE_KEY(this, table);
   table_flags = wrap_handler->ha_table_flags() |
     HA_CAN_FULLTEXT | HA_PRIMARY_KEY_REQUIRED_FOR_DELETE  |
-    HA_CAN_RTREEKEYS | HA_CAN_REPAIR;
+    HA_CAN_RTREEKEYS;
+#ifdef HA_CAN_REPAIR
+  table_flags |= HA_CAN_REPAIR;
+#endif
   MRN_SET_BASE_SHARE_KEY(share, table->s);
   MRN_SET_BASE_TABLE_KEY(this, table);
   DBUG_RETURN(table_flags);
-------------- next part --------------
HTML����������������������������...
Download 



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