[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] enhance error handling for ha_groonga::close.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:19:13 JST 2012


Tetsuro IKEDA	2009-07-21 19:42:57 +0900 (Tue, 21 Jul 2009)

  New Revision: 0ebd6009dab5e12cafc21584e673accaa48119ce
  https://github.com/mroonga/mroonga/commit/0ebd6009dab5e12cafc21584e673accaa48119ce

  Log:
    enhance error handling for ha_groonga::close.

  Modified files:
    src/ha_groonga.cc

  Modified: src/ha_groonga.cc (+5 -1)
===================================================================
--- src/ha_groonga.cc    2009-07-21 19:31:08 +0900 (7b2dff8)
+++ src/ha_groonga.cc    2009-07-21 19:42:57 +0900 (2abaf55)
@@ -377,7 +377,11 @@ int ha_groonga::close()
   minfo->ref_count--;
   if (minfo->ref_count <= 0)
   {
-    mrn_hash_remove(ctx, minfo->table->name);
+    if (mrn_hash_remove(ctx, minfo->table->name) != 0)
+    {
+      GRN_LOG(ctx, GRN_LOG_ERROR, "error in mrn_hash_remove:[%p,%s]",
+              ctx, minfo->table->name);
+    }
     mrn_close(ctx, minfo);
     mrn_deinit_obj_info(ctx, minfo);
     this->minfo = NULL;
-------------- next part --------------
HTML����������������������������...
Download 



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