chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
DB_RECORDCOUNT has been deprecated for ages and has gone in db4.6
[disorder]
/
lib
/
cache.c
diff --git
a/lib/cache.c
b/lib/cache.c
index df8fa68d84c79c43a194febc68d7b316cd170f3f..c6624e89d0f4b6ba04a0f2b39670bd64601de4a2 100644
(file)
--- a/
lib/cache.c
+++ b/
lib/cache.c
@@
-97,6
+97,10
@@
void cache_clean(const struct cache_type *type) {
hash_foreach(h, clean_callback, (void *)type);
}
+size_t cache_count(void) {
+ return h ? hash_count(h) : 0;
+}
+
/*
Local Variables:
c-basic-offset:2
@@
-105,4
+109,3
@@
fill-column:79
indent-tabs-mode:nil
End:
*/
-/* arch-tag:uoFZfd12rkQj/ppG5g3BtQ */