[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] change drop index id at drop_index

Back to archive index

Kentoku null+****@clear*****
Thu Oct 4 10:31:04 JST 2012


Kentoku	2011-10-28 01:27:36 +0900 (Fri, 28 Oct 2011)

  New Revision: 7d964f3116239c20062172a575ace4d1fe03406b
  https://github.com/mroonga/mroonga/commit/7d964f3116239c20062172a575ace4d1fe03406b

  Log:
    change drop index id at drop_index

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -4)
===================================================================
--- ha_mroonga.cc    2011-10-27 19:38:07 +0900 (0425215)
+++ ha_mroonga.cc    2011-10-28 01:27:36 +0900 (dcc764a)
@@ -7513,8 +7513,8 @@ int ha_mroonga::wrapper_prepare_drop_index(TABLE *table_arg, uint *key_num,
     if (index_table != NULL) {
       grn_obj_remove(ctx, index_table);
     }
-    grn_index_tables[i] = NULL;
-    grn_index_columns[i] = NULL;
+    grn_index_tables[key_num[i]] = NULL;
+    grn_index_columns[key_num[i]] = NULL;
   }
   if (j)
   {
@@ -7543,8 +7543,8 @@ int ha_mroonga::storage_prepare_drop_index(TABLE *table_arg, uint *key_num,
     if (index_table != NULL) {
       grn_obj_remove(ctx, index_table);
     }
-    grn_index_tables[i] = NULL;
-    grn_index_columns[i] = NULL;
+    grn_index_tables[key_num[i]] = NULL;
+    grn_index_columns[key_num[i]] = NULL;
   }
   DBUG_RETURN(0);
 }
-------------- next part --------------
HTML����������������������������...
Download 



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