From 644fc616b3b79d7301aeabb3a86910e10a5606d5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 29 May 2014 14:00:13 +0100 Subject: attempt to purge low level cache on out of memory during fetch --- content/llcache.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'content/llcache.h') diff --git a/content/llcache.h b/content/llcache.h index a9ed1861a..4a3521637 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -246,11 +246,15 @@ void llcache_finalise(void); nserror llcache_poll(void); /** - * Cause the low-level cache to attempt to perform cleanup. No - * guarantees are made as to whether or not cleanups will take + * Cause the low-level cache to attempt to perform cleanup. + * + * No guarantees are made as to whether or not cleanups will take * place and what, if any, space savings will be made. + * + * \param purge Any objects held in the cache that are safely removable will + * be freed regardless of the configured size limits. */ -void llcache_clean(void); +void llcache_clean(bool purge); /** * Retrieve a handle for a low-level cache object -- cgit v1.2.1