summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-04-30 18:23:20 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-04-30 18:39:59 +0200
commit860e47a256d38fd959ea83acd2dd2023dee0ee83 (patch)
treea28e8651271816cc733b6bfac18cef96e3d25a4f /bin
parent76966bcd6c6e9c330cc97ad230e84f3dbddcba56 (diff)
Add functionality to flush the internal cache
Before we had the problem that when iterating over _a lot_ (like 5k) entries and also fetching them, at some point the OS would return with "Too many files open". That is because the store internally caches a lot. With this change, the Store gets an API to query how big the cache is, how much the cache can currently hold and (and that's the main thing in this patch) to flush the cache to disk. A function to simply ask the store whether its cache should be flushed (which would us require to ask the OS how many files we can open... which would be possible with `libc::getrlimit`) does not yet exist, though, but could be added easily if desired.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions