Kouhei Sutou
null+****@clear*****
Tue Apr 4 17:18:58 JST 2017
Kouhei Sutou 2017-04-04 17:18:58 +0900 (Tue, 04 Apr 2017) New Revision: d4fb073ba11f18fb5e3b957b65fd7d05b29d1e52 https://github.com/groonga/groonga/commit/d4fb073ba11f18fb5e3b957b65fd7d05b29d1e52 Message: cache: use lock timeout for cache Modified files: lib/cache.c Modified: lib/cache.c (+3 -3) =================================================================== --- lib/cache.c 2017-04-04 17:18:29 +0900 (a699756) +++ lib/cache.c 2017-04-04 17:18:58 +0900 (9098384) @@ -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; } @@ -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; } @@ -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; } -------------- next part -------------- HTML����������������������������... Download