aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache/cachedisklayer.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-10-02 10:08:46 +0200
committerGitHub Enterprise <[email protected]>2024-10-02 10:08:46 +0200
commit0b86039ebbbce0138790f9039189dddb4b70b73a (patch)
treee3deda42d154cb779ff8ab3dd29d04a5dc4069f0 /src/zenstore/cache/cachedisklayer.cpp
parentPorject -> Project (diff)
downloadzen-0b86039ebbbce0138790f9039189dddb4b70b73a.tar.xz
zen-0b86039ebbbce0138790f9039189dddb4b70b73a.zip
gc block size target max size (#180)
* If a block is small (less than half max size) we add it to blocks to compact Sort blocks when iterating over them * do compact of block stores even if no new unused are found * do compact phase even if bucket is empty
Diffstat (limited to 'src/zenstore/cache/cachedisklayer.cpp')
-rw-r--r--src/zenstore/cache/cachedisklayer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/zenstore/cache/cachedisklayer.cpp b/src/zenstore/cache/cachedisklayer.cpp
index 928165185..fed37824a 100644
--- a/src/zenstore/cache/cachedisklayer.cpp
+++ b/src/zenstore/cache/cachedisklayer.cpp
@@ -3475,10 +3475,6 @@ ZenCacheDiskLayer::CacheBucket::RemoveExpiredData(GcCtx& Ctx, GcStats& Stats)
{
return nullptr;
}
- if (m_Index.empty())
- {
- return nullptr;
- }
TotalEntries = m_Index.size();