aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c1c7e9e65f..a3334a71ca 100644
--- a/cache.h
+++ b/cache.h
@@ -381,6 +381,12 @@ struct cache_entry *make_empty_transient_cache_entry(size_t name_len);
void discard_cache_entry(struct cache_entry *ce);
/*
+ * Check configuration if we should perform extra validation on cache
+ * entries.
+ */
+int should_validate_cache_entries(void);
+
+/*
* Duplicate a cache_entry. Allocate memory for the new entry from a
* memory_pool. Takes into account cache_entry fields that are meant
* for managing the underlying memory allocation of the cache_entry.