Navigation Menu

Skip to content

Commit

Permalink
Stop to expire cache on database close
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 16, 2018
1 parent e98a3cd commit 63e3639
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/db.c
Expand Up @@ -492,11 +492,6 @@ grn_db_close(grn_ctx *ctx, grn_obj *db)
GRN_FREE(s);

if (ctx_used_db) {
grn_cache *cache;
cache = grn_cache_current_get(ctx);
if (cache) {
grn_cache_expire(cache, -1);
}
ctx->impl->db = NULL;
}

Expand Down

0 comments on commit 63e3639

Please sign in to comment.