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

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 25日 (日) 12:20:14 JST


Kouhei Sutou	2011-09-25 03:20:14 +0000 (Sun, 25 Sep 2011)

  New Revision: 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 02:53:31 +0000 (d511f13)
+++ ha_mroonga.cc    2011-09-25 03:20:14 +0000 (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)))




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