[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fix a bug of ha_groonga::open() when hash hit.

Back to archive index

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


Tetsuro IKEDA	2009-07-30 16:23:56 +0900 (Thu, 30 Jul 2009)

  New Revision: 861e2f536875d4686d58dec19e01d04acc86eb4a
  https://github.com/mroonga/mroonga/commit/861e2f536875d4686d58dec19e01d04acc86eb4a

  Log:
    fix a bug of ha_groonga::open() when hash hit.

  Modified files:
    driver.c
    ha_groonga.cc

  Modified: driver.c (+1 -1)
===================================================================
--- driver.c    2009-07-30 15:44:09 +0900 (80fa082)
+++ driver.c    2009-07-30 16:23:56 +0900 (4b51e64)
@@ -213,7 +213,7 @@ int mrn_hash_get(grn_ctx *ctx, const char *key, void **value)
   // key not found
   if (id == GRN_ID_NIL)
   {
-    GRN_LOG(ctx, GRN_LOG_WARNING, "hash get not found (key=%s)", key);
+    GRN_LOG(ctx, GRN_LOG_DEBUG, "hash get not found (key=%s)", key);
     res = -1;
   }
   else

  Modified: ha_groonga.cc (+1 -0)
===================================================================
--- ha_groonga.cc    2009-07-30 15:44:09 +0900 (a13cac5)
+++ ha_groonga.cc    2009-07-30 16:23:56 +0900 (bb1ce48)
@@ -324,6 +324,7 @@ int ha_groonga::open(const char *name, int mode, uint test_if_locked)
   if (mrn_hash_get(ctx, MRN_TABLE_NAME(name), (void**) &minfo) == 0)
   {
     minfo->ref_count++;
+    this->minfo = minfo;
     pthread_mutex_unlock(mrn_lock);
     return 0;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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