diff options
Diffstat (limited to 'src/util/disk_cache.c')
-rw-r--r-- | src/util/disk_cache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index d1f14736725..74fc51b6305 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -455,6 +455,12 @@ disk_cache_destroy(struct disk_cache *cache) ralloc_free(cache); } +void +disk_cache_wait_for_idle(struct disk_cache *cache) +{ + util_queue_finish(&cache->cache_queue); +} + /* Return a filename within the cache's directory corresponding to 'key'. The * returned filename is ralloced with 'cache' as the parent context. * |