aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-02 16:53:21 +0200
committerDan Engelbrecht <[email protected]>2022-05-02 16:53:21 +0200
commitae8505ad0af6375289c83b6455796e0c91609dc9 (patch)
tree2cc89875827523298c12b8aa7eb1b5329081d43c /zenserver/cache/structuredcachestore.cpp
parentsimplify lambda captures (diff)
downloadzen-ae8505ad0af6375289c83b6455796e0c91609dc9.tar.xz
zen-ae8505ad0af6375289c83b6455796e0c91609dc9.zip
Make sure we close all block files when dropping a cache bucket
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 46f9d8fe6..a9e9b8f78 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -1202,8 +1202,7 @@ ZenCacheDiskLayer::CacheBucket::Put(const IoHash& HashKey, const ZenCacheValue&
void
ZenCacheDiskLayer::CacheBucket::Drop()
{
- // TODO: close all open files and manage locking
- // TODO: add error handling
+ m_BlockStore.Close();
m_SlogFile.Close();
DeleteDirectories(m_BucketDir);
}