[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fix crash bug on delete table. fixes #1063

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:29:44 JST 2012


Kouhei Sutou	2011-09-25 12:20:14 +0900 (Sun, 25 Sep 2011)

  New Revision: f3e1059010596b7e5eb131d31c1bc4bfbb25f2f3
  https://github.com/mroonga/mroonga/commit/f3e1059010596b7e5eb131d31c1bc4bfbb25f2f3

  Log:
    fix crash bug on delete table. fixes #1063
    
    It will be caused on patition storage engine enabled MySQL
    5.1.X like Ubuntu 10.04.
    
    Reported by Isao Sugimoto. Thanks!!!

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-09-25 11:53:31 +0900 (d511f13)
+++ ha_mroonga.cc    2011-09-25 12:20:14 +0900 (9cd202a)
@@ -2501,7 +2501,7 @@ int ha_mroonga::delete_table(const char *name)
   /* This is previous version */
   tmp_table_share->version--;
   tmp_table.s = tmp_table_share;
-#if MYSQL_VERSION_ID >= 50500
+#ifdef WITH_PARTITION_STORAGE_ENGINE
   tmp_table.part_info = NULL;
 #endif
   if (!(tmp_share = mrn_get_share(name, &tmp_table, &error)))
-------------- next part --------------
HTML����������������������������...
Download 



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