[Groonga-mysql-commit] mroonga/mroonga at 0996b33 [master] Fix a crash bug on shutdown when any opening table exists

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Aug 8 17:57:14 JST 2015


Kouhei Sutou	2015-08-08 17:57:14 +0900 (Sat, 08 Aug 2015)

  New Revision: 0996b33d41be390f98dc2575f667920207104548
  https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548

  Message:
    Fix a crash bug on shutdown when any opening table exists
    
    GitHub: fix #71
    
    Reported by GMO Media, Inc. Thanks!!!

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+4 -1)
===================================================================
--- ha_mroonga.cpp    2015-08-08 11:59:26 +0900 (2a2fc89)
+++ ha_mroonga.cpp    2015-08-08 17:57:14 +0900 (28c3e6c)
@@ -4549,7 +4549,10 @@ int ha_mroonga::close()
     DBUG_RETURN(error);
   }
 
-  error = add_wrap_hton(share->table_name, share->hton);
+  if (thd)
+  {
+    error = add_wrap_hton(share->table_name, share->hton);
+  }
   bitmap_free(&multiple_column_key_bitmap);
   if (share->use_count == 1) {
     mrn_free_long_term_share(share->long_term_share);
-------------- next part --------------
HTML����������������������������...
Download 



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