1
0
mirror of https://github.com/Zygo/bees.git synced 2025-07-06 02:22:27 +02:00

Merge branch 'master' into subvol-threads

This commit is contained in:
Zygo Blaxell
2017-06-17 08:15:34 -04:00
6 changed files with 25 additions and 14 deletions

View File

@ -56,6 +56,12 @@ BeesFdCache::open_root(shared_ptr<BeesContext> ctx, uint64_t root)
Fd
BeesFdCache::open_root_ino(shared_ptr<BeesContext> ctx, uint64_t root, uint64_t ino)
{
if (m_file_cache_timer.age() > BEES_COMMIT_INTERVAL) {
BEESINFO("Clearing open FD cache to enable file delete");
m_file_cache.clear();
m_file_cache_timer.reset();
BEESCOUNT(open_clear);
}
return m_file_cache(ctx, root, ino);
}