[Groonga-mysql-commit] mroonga/mroonga [master] add dropping database at dropping temporary table. refs #1267

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 15日 (水) 07:39:20 JST


Kentoku	2012-02-15 07:39:20 +0900 (Wed, 15 Feb 2012)

  New Revision: bfc8046891c4b655b050a31c35bcd4f8483302b4

  Log:
    add dropping database at dropping temporary table. refs #1267

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -0)
===================================================================
--- ha_mroonga.cc    2012-02-15 06:26:08 +0900 (116eb0e)
+++ ha_mroonga.cc    2012-02-15 07:39:20 +0900 (1ba43e7)
@@ -3569,6 +3569,10 @@ int ha_mroonga::delete_table(const char *name)
   mrn_open_mutex_lock();
   mrn_free_tmp_table_share(tmp_table_share);
   mrn_open_mutex_unlock();
+  if (name[0] != '.') {
+    /* temporary table */
+    mrn_drop_db(mrn_hton_ptr, (char *) name);
+  }
   DBUG_RETURN(error);
 }
 




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