diff options
| author | zousar <[email protected]> | 2022-01-21 14:35:34 -0700 |
|---|---|---|
| committer | zousar <[email protected]> | 2022-01-21 14:35:34 -0700 |
| commit | 139a58d6f3758db141fbdf85dfbf890bc65b2da9 (patch) | |
| tree | a1fb8624aa77ac5c600b1545705fce4b0b6eedf7 /zenserver/cache | |
| parent | Fixed missing object in cache bucket manifest. (diff) | |
| download | zen-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.
Diffstat (limited to 'zenserver/cache')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 6 |
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; |