diff options
| author | Per Larsson <[email protected]> | 2022-04-27 09:49:35 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-04-27 09:49:35 +0200 |
| commit | 1ebfecb3a852f56014468f6b55356300c890172e (patch) | |
| tree | c7f01d4d069d80e44db83ffc144b1be70bebc5e8 | |
| parent | Added mapping from chunk ID to cache key. (diff) | |
| download | zen-ddcref.tar.xz zen-ddcref.zip | |
Changed derived data cache key property name.ddcref
| -rw-r--r-- | zenserver/projectstore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 124d10b65..e8c06e269 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -663,7 +663,7 @@ ProjectStore::Oplog::RegisterOplogEntry(CbObject Core, const OplogEntry& OpEntry CbObjectView DerivedObj = Entry.AsObjectView(); Oid DerivedDataId = DerivedObj["id"sv].AsObjectId(); - CbObjectView CacheKeyObj = DerivedObj["cachekey"sv].AsObjectView(); + CbObjectView DerivedDataKey = DerivedObj["deriveddatakey"sv].AsObjectView(); IoHash DerivedDataHash = DerivedObj["data"sv].AsBinaryAttachment(); if (DerivedDataHash != IoHash::Zero) @@ -673,9 +673,9 @@ ProjectStore::Oplog::RegisterOplogEntry(CbObject Core, const OplogEntry& OpEntry } else { - CbObjectView KeyObj = CacheKeyObj["CacheKey"sv].AsObjectView(); - CacheKey Key = CacheKey::Create(KeyObj["Bucket"sv].AsString(), KeyObj["Hash"sv].AsHash()); - Oid ValueId = CacheKeyObj["ValueId"sv].AsObjectId(); + CbObjectView KeyObj = DerivedDataKey["cachekey"sv].AsObjectView(); + CacheKey Key = CacheKey::Create(KeyObj["bucket"sv].AsString(), KeyObj["hash"sv].AsHash()); + Oid ValueId = DerivedDataKey["valueid"sv].AsObjectId(); if (IoHash Cid = AddCacheMapping(DerivedDataId, Key, ValueId); Cid != IoHash::Zero) { |