[Groonga-mysql-commit] mroonga/mroonga [master] add inheriting connect_string

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 2日 (金) 10:39:03 JST


Kentoku	2011-09-02 01:39:03 +0000 (Fri, 02 Sep 2011)

  New Revision: e668bbebee02f4ea8603298e9ecf59fce7d64480

  Log:
    add inheriting connect_string

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+5 -0)
===================================================================
--- ha_mroonga.cc    2011-09-01 17:43:23 +0000 (2cd79c7)
+++ ha_mroonga.cc    2011-09-02 01:39:03 +0000 (0896106)
@@ -5609,6 +5609,11 @@ void ha_mroonga::storage_update_create_info(HA_CREATE_INFO* create_info)
 void ha_mroonga::update_create_info(HA_CREATE_INFO* create_info)
 {
   MRN_DBUG_ENTER_METHOD();
+  if (!create_info->connect_string.str)
+  {
+    create_info->connect_string.str = table->s->connect_string.str;
+    create_info->connect_string.length = table->s->connect_string.length;
+  }
   if (share->wrapper_mode)
     wrapper_update_create_info(create_info);
   else




Groonga-mysql-commit メーリングリストの案内
Back to archive index