Navigation Menu

Skip to content

Commit

Permalink
cache: add missing value set...
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 4, 2017
1 parent 9914f50 commit eb65125
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cache.c
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit eb65125

Please sign in to comment.