[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Ensure to clean a removed table

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:37:59 JST 2012


Kouhei Sutou	2012-02-24 14:37:54 +0900 (Fri, 24 Feb 2012)

  New Revision: 023b9a0e3aeaed1691cdb60fa63b1f8f2a0f1809
  https://github.com/mroonga/mroonga/commit/023b9a0e3aeaed1691cdb60fa63b1f8f2a0f1809

  Log:
    Ensure to clean a removed table

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+3 -0)
===================================================================
--- ha_mroonga.cc    2012-02-24 14:36:38 +0900 (272048a)
+++ ha_mroonga.cc    2012-02-24 14:37:54 +0900 (1df648b)
@@ -9994,6 +9994,9 @@ int ha_mroonga::wrapper_recreate_indexes(THD *thd)
   bitmap_clear_all(table->read_set);
   clear_indexes();
   remove_grn_obj_force(table_name);
+  if (grn_table) {
+    grn_table = NULL;
+  }
   mrn_set_bitmap_by_key(table->read_set, p_key_info);
   for (i = 0; i < n_keys; i++) {
     if (!(key_info[i].flags & HA_FULLTEXT) && !mrn_is_geo_key(&key_info[i])) {
-------------- next part --------------
HTML����������������������������...
下載 



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