aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-01-25 11:17:21 +0100
committerStefan Boberg <[email protected]>2022-01-25 11:17:21 +0100
commit39fe91b4e403a74c059ce13d20ba13f6d9ec9ca7 (patch)
tree69af4ca9c74ef53d7fc16b37eb1072cb7d2de403 /zenserver/cache/structuredcachestore.cpp
parentprepare_commit: Add filter for filenames. Print full path from root in the di... (diff)
downloadzen-39fe91b4e403a74c059ce13d20ba13f6d9ec9ca7.tar.xz
zen-39fe91b4e403a74c059ce13d20ba13f6d9ec9ca7.zip
Implemented support for storing compressed buffers as values in structured cache store
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 2bba2e8e6..de5bccc3a 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -614,6 +614,10 @@ ZenCacheDiskLayer::CacheBucket::Put(const IoHash& HashKey, const ZenCacheValue&
{
EntryFlags |= DiskLocation::kStructured;
}
+ else if (Value.Value.GetContentType() == ZenContentType::kCompressedBinary)
+ {
+ EntryFlags |= DiskLocation::kCompressed;
+ }
RwLock::ExclusiveLockScope _(m_IndexLock);