aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzousar <[email protected]>2022-01-21 14:35:34 -0700
committerzousar <[email protected]>2022-01-21 14:35:34 -0700
commit139a58d6f3758db141fbdf85dfbf890bc65b2da9 (patch)
treea1fb8624aa77ac5c600b1545705fce4b0b6eedf7
parentFixed missing object in cache bucket manifest. (diff)
downloadzen-139a58d6f3758db141fbdf85dfbf890bc65b2da9.tar.xz
zen-139a58d6f3758db141fbdf85dfbf890bc65b2da9.zip
Use ExtendablePathBuilders
Remove uses of non-extendable path builders to avoid limitations around path length outside of the low level file access layer.
-rw-r--r--zenserver/cache/structuredcachestore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 160396917..53dd3d5c5 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -531,7 +531,7 @@ ZenCacheDiskLayer::CacheBucket::GetInlineCacheValue(const DiskLocation& Loc, Zen
bool
ZenCacheDiskLayer::CacheBucket::GetStandaloneCacheValue(const DiskLocation& Loc, const IoHash& HashKey, ZenCacheValue& OutValue)
{
- PathBuilder<256> DataFilePath;
+ ExtendablePathBuilder<256> DataFilePath;
BuildPath(DataFilePath, HashKey);
RwLock::SharedLockScope ValueLock(LockForHash(HashKey));
@@ -858,7 +858,7 @@ ZenCacheDiskLayer::CacheBucket::CollectGarbage(GcContext& GcCtx)
// NOTE: This can probably be made asynchronously
{
std::error_code Ec;
- PathBuilder<256> Path;
+ ExtendablePathBuilder<256> Path;
for (const auto& Entry : ExpiredEntries)
{
@@ -1055,7 +1055,7 @@ ZenCacheDiskLayer::CacheBucket::PutStandaloneCacheValue(const IoHash& HashKey, c
{
RwLock::ExclusiveLockScope ValueLock(LockForHash(HashKey));
- PathBuilder<256> DataFilePath;
+ ExtendablePathBuilder<256> DataFilePath;
BuildPath(DataFilePath, HashKey);
TemporaryFile DataFile;