[Groonga-mysql-commit] mroonga/mroonga at e6ccaa4 [master] mysql8: handerton::create has the "patritioned" argument

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 9 11:08:25 JST 2018


Kouhei Sutou	2018-07-09 11:08:25 +0900 (Mon, 09 Jul 2018)

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

  Message:
    mysql8: handerton::create has the "patritioned" argument

  Modified files:
    ha_mroonga.cpp
    ha_mroonga.hpp

  Modified: ha_mroonga.cpp (+4 -2)
===================================================================
--- ha_mroonga.cpp    2018-07-09 07:04:30 +0900 (f1ad292b)
+++ ha_mroonga.cpp    2018-07-09 11:08:25 +0900 (bbc87e89)
@@ -3385,8 +3385,10 @@ int ha_mroonga::create_share_for_create() const
   if (share_for_create.wrapper_mode)
   {
     wrap_handler_for_create =
-      share_for_create.hton->create(share_for_create.hton, NULL,
-                                    &mem_root_for_create);
+      MRN_HANDLERTON_CREATE(share_for_create.hton,
+                            NULL,
+                            false,
+                            &mem_root_for_create);
     if (!wrap_handler_for_create) {
       error = HA_ERR_OUT_OF_MEM;
       goto error;

  Modified: ha_mroonga.hpp (+8 -0)
===================================================================
--- ha_mroonga.hpp    2018-07-09 07:04:30 +0900 (76e8485b)
+++ ha_mroonga.hpp    2018-07-09 11:08:25 +0900 (56b5e261)
@@ -321,6 +321,14 @@ typedef uint mrn_alter_table_flags;
 #  define MRN_HANDLERTON_CREATE_HAVE_PARTITIONED
 #endif
 
+#ifdef MRN_HANDLERTON_CREATE_HAVE_PARTITIONED
+#  define MRN_HANDLERTON_CREATE(hton, table, patitioned, mem_root)      \
+  (hton)->create((hton), (table), (patitioned), (mem_root))
+#else
+#  define MRN_HANDLERTON_CREATE(hton, table, patitioned, mem_root)      \
+  (hton)->create((hton), (table), (mem_root))
+#endif
+
 #if defined(HAVE_PSI_INTERFACE) &&                      \
   (MYSQL_VERSION_ID < 80002 || defined(MRN_MARIADB_P))
 #  define MRN_HAVE_PSI_SERVER
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180709/40e97450/attachment-0001.htm 



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