[Groonga-commit] groonga/groonga at bdd5454 [master] cache: use ctx for the cache

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 6 11:38:40 JST 2016


Kouhei Sutou	2016-04-06 11:38:40 +0900 (Wed, 06 Apr 2016)

  New Revision: bdd545419e7c13af56fc3a90eaf75a291b7bc064
  https://github.com/groonga/groonga/commit/bdd545419e7c13af56fc3a90eaf75a291b7bc064

  Message:
    cache: use ctx for the cache

  Modified files:
    lib/cache.c

  Modified: lib/cache.c (+1 -2)
===================================================================
--- lib/cache.c    2016-04-06 11:35:30 +0900 (1329e16)
+++ lib/cache.c    2016-04-06 11:38:40 +0900 (e155eaf)
@@ -203,9 +203,8 @@ grn_cache_unref(grn_ctx *ctx, grn_cache *cache,
                 const char *str, uint32_t str_len)
 {
   grn_cache_entry *ce;
-  ctx = &grn_gctx;
   MUTEX_LOCK(cache->mutex);
-  if (grn_hash_get(ctx, cache->hash, str, str_len, (void **)&ce)) {
+  if (grn_hash_get(cache->ctx, cache->hash, str, str_len, (void **)&ce)) {
     if (ce->nref) { ce->nref--; }
   }
   MUTEX_UNLOCK(cache->mutex);
-------------- next part --------------
HTML����������������������������...
Download 



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