aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-01-21 07:38:49 +0100
committerPer Larsson <[email protected]>2022-01-21 07:38:49 +0100
commit08e620363464c82a27498248028b3f20747d6434 (patch)
tree8e9310202383b178195b7bd0a4b03118bbb35938 /zenserver/cache/structuredcachestore.cpp
parentFixed CacheRecordPolicy::Save (diff)
downloadzen-08e620363464c82a27498248028b3f20747d6434.tar.xz
zen-08e620363464c82a27498248028b3f20747d6434.zip
Fixed missing object in cache bucket manifest.
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 0663307cb..160396917 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -678,7 +678,11 @@ ZenCacheDiskLayer::CacheBucket::SaveManifest()
{
const IoHash& Key = Kv.first;
const IndexEntry& Entry = Kv.second;
- Writer << "Key"sv << Key << "LastAccess"sv << Entry.LastAccess;
+
+ Writer.BeginObject();
+ Writer << "Key"sv << Key;
+ Writer << "LastAccess"sv << Entry.LastAccess;
+ Writer.EndObject();
}
Writer.EndArray();
}