aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/cache/httpstructuredcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
-rw-r--r--src/zenserver/cache/httpstructuredcache.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp
index d8bc00c03..8db96f914 100644
--- a/src/zenserver/cache/httpstructuredcache.cpp
+++ b/src/zenserver/cache/httpstructuredcache.cpp
@@ -1860,7 +1860,7 @@ HttpStructuredCacheService::HandleRpcRequest(HttpServerRequest& Request)
}
CbPackage
-HttpStructuredCacheService::HandleRpcPutCacheRecords([[maybe_unused]] const CacheRequestContext& Context, const CbPackage& BatchRequest)
+HttpStructuredCacheService::HandleRpcPutCacheRecords(const CacheRequestContext& Context, const CbPackage& BatchRequest)
{
ZEN_TRACE_CPU("Z$::RpcPutCacheRecords");
@@ -1896,7 +1896,11 @@ HttpStructuredCacheService::HandleRpcPutCacheRecords([[maybe_unused]] const Cach
return CbPackage{};
}
CacheRecordPolicy Policy = LoadCacheRecordPolicy(RequestObject["Policy"sv].AsObjectView(), DefaultPolicy);
- PutRequestData PutRequest{*Namespace, std::move(Key), RecordObject, std::move(Policy)};
+ PutRequestData PutRequest{.Namespace = *Namespace,
+ .Key = std::move(Key),
+ .RecordObject = RecordObject,
+ .Policy = std::move(Policy),
+ .Context = Context};
PutResult Result = PutCacheRecord(PutRequest, &BatchRequest);