Navigation Menu

Skip to content

Commit

Permalink
cache: use lock timeout for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 4, 2017
1 parent 27e4e0e commit d4fb073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cache.c
Expand Up @@ -415,7 +415,7 @@ grn_cache_fetch_persistent(grn_ctx *ctx, grn_cache *cache,
return rc;
}

rc = grn_io_lock(ctx, keys->io, grn_lock_timeout);
rc = grn_io_lock(ctx, keys->io, cache->impl.persistent.timeout);
if (rc != GRN_SUCCESS) {
return rc;
}
Expand Down Expand Up @@ -535,7 +535,7 @@ grn_cache_update_persistent(grn_ctx *ctx, grn_cache *cache,
return;
}

rc = grn_io_lock(ctx, keys->io, grn_lock_timeout);
rc = grn_io_lock(ctx, keys->io, cache->impl.persistent.timeout);
if (rc != GRN_SUCCESS) {
return;
}
Expand Down Expand Up @@ -607,7 +607,7 @@ grn_cache_expire_persistent(grn_cache *cache, int32_t size)
grn_hash *keys = cache->impl.persistent.keys;
grn_cache_entry_persistent *head_entry;

rc = grn_io_lock(ctx, keys->io, grn_lock_timeout);
rc = grn_io_lock(ctx, keys->io, cache->impl.persistent.timeout);
if (rc != GRN_SUCCESS) {
return;
}
Expand Down

0 comments on commit d4fb073

Please sign in to comment.