[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fixed create table's problem

Back to archive index

Kentoku null+****@clear*****
Thu Oct 4 10:26:48 JST 2012


Kentoku	2011-07-11 13:17:08 +0900 (Mon, 11 Jul 2011)

  New Revision: 57d608f60110c960aa7b8a396c6b189a1249934b
  https://github.com/mroonga/mroonga/commit/57d608f60110c960aa7b8a396c6b189a1249934b

  Log:
    fixed create table's problem

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+3 -0)
===================================================================
--- ha_mroonga.cc    2011-07-11 11:59:31 +0900 (5b315de)
+++ ha_mroonga.cc    2011-07-11 13:17:08 +0900 (7645c0d)
@@ -1094,6 +1094,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table,
     DBUG_RETURN(error);
   base_key_info = table->key_info;
 
+  share = tmp_share;
   MRN_SET_WRAP_SHARE_KEY(tmp_share, table->s);
   MRN_SET_WRAP_TABLE_KEY(this, table);
   if (!(hnd =
@@ -1102,6 +1103,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table,
   {
     MRN_SET_BASE_SHARE_KEY(tmp_share, table->s);
     MRN_SET_BASE_TABLE_KEY(this, table);
+    share = NULL;
     if (wrap_key_info)
     {
       my_free(wrap_key_info, MYF(0));
@@ -1113,6 +1115,7 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table,
   error = hnd->ha_create(name, table, info);
   MRN_SET_BASE_SHARE_KEY(tmp_share, table->s);
   MRN_SET_BASE_TABLE_KEY(this, table);
+  share = NULL;
   delete hnd;
 
   if (wrap_key_info)
-------------- next part --------------
HTML����������������������������...
Download 



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