[Groonga-commit] groonga/groonga at eb65125 [master] cache: add missing value set...

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 4 17:26:21 JST 2017


Kouhei Sutou	2017-04-04 17:26:21 +0900 (Tue, 04 Apr 2017)

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

  Message:
    cache: add missing value set...

  Modified files:
    lib/cache.c

  Modified: lib/cache.c (+5 -0)
===================================================================
--- lib/cache.c    2017-04-04 17:19:40 +0900 (758dd4d)
+++ lib/cache.c    2017-04-04 17:26:21 +0900 (bc87323)
@@ -531,6 +531,7 @@ grn_cache_update_persistent(grn_ctx *ctx, grn_cache *cache,
 {
   grn_rc rc;
   grn_hash *keys = cache->impl.persistent.keys;
+  grn_ja *values = cache->impl.persistent.values;
   grn_id cache_id;
   grn_cache_entry_persistent *entry;
   int added;
@@ -557,6 +558,10 @@ grn_cache_update_persistent(grn_ctx *ctx, grn_cache *cache,
     }
     entry->modified_time = ctx->impl->tv;
 
+    grn_ja_put(cache->ctx, values, cache_id,
+               GRN_TEXT_VALUE(value), GRN_TEXT_LEN(value),
+               GRN_OBJ_SET, NULL);
+
     head_entry =
       (grn_cache_entry_persistent *)grn_hash_get_value_(ctx,
                                                         keys,
-------------- next part --------------
HTML����������������������������...
Download 



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