[gnome-builder] cache: track removal of items from cache
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] cache: track removal of items from cache
- Date: Fri, 13 May 2016 12:23:07 +0000 (UTC)
commit 86239e579576a5e2cac3e56e4f5f97b26667b1e6
Author: Christian Hergert <chergert redhat com>
Date: Fri May 13 15:22:56 2016 +0300
cache: track removal of items from cache
If you are using the cache for a ton of items, this is probably a
bit annoying, but we mostly just use the task cache to reduce races in
multiple access to the same cache key, so should be fine.
contrib/egg/egg-task-cache.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index a6d9a23..0f0e68f 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -249,6 +249,8 @@ egg_task_cache_evict_full (EggTaskCache *self,
EGG_COUNTER_DEC (cached);
+ g_debug ("Evicted 1 item from %s", self->name ?: "unnamed cache");
+
if (self->evict_source != NULL)
evict_source_rearm (self->evict_source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]