[Groonga-mysql-commit] mroonga/mroonga at 5c99e97 [master] mysql8: pass table definition to ha_open()

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 9 15:22:32 JST 2018


Kouhei Sutou	2018-07-09 15:22:32 +0900 (Mon, 09 Jul 2018)

  New Revision: 5c99e97bb4bf6a1cb3d6c05db8e15e7befa17d26
  https://github.com/mroonga/mroonga/commit/5c99e97bb4bf6a1cb3d6c05db8e15e7befa17d26

  Message:
    mysql8: pass table definition to ha_open()

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+13 -2)
===================================================================
--- ha_mroonga.cpp    2018-07-09 15:19:07 +0900 (c4a5e99a)
+++ ha_mroonga.cpp    2018-07-09 15:22:32 +0900 (8c0b8491)
@@ -12999,8 +12999,19 @@ handler *ha_mroonga::wrapper_clone(const char *name, MEM_ROOT *mem_root)
   ((ha_mroonga *) cloned_handler)->is_clone = true;
   ((ha_mroonga *) cloned_handler)->parent_for_clone = this;
   ((ha_mroonga *) cloned_handler)->mem_root_for_clone = mem_root;
-  if (cloned_handler->ha_open(table, table->s->normalized_path.str,
-                              table->db_stat, HA_OPEN_IGNORE_IF_LOCKED))
+#ifdef MRN_HANDLER_OPEN_HAVE_TABLE_DEFINITION
+  int error = cloned_handler->ha_open(table,
+                                      table->s->normalized_path.str,
+                                      table->db_stat,
+                                      HA_OPEN_IGNORE_IF_LOCKED,
+                                      NULL);
+#else
+  int error = cloned_handler->ha_open(table,
+                                      table->s->normalized_path.str,
+                                      table->db_stat,
+                                      HA_OPEN_IGNORE_IF_LOCKED);
+#endif
+  if (error != 0)
   {
     delete cloned_handler;
     DBUG_RETURN(NULL);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180709/432d4b6f/attachment-0001.htm 



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