From df569c783a23e2d4195c7205256a190d4f4b92c7 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 27 Oct 2023 12:38:57 +0200 Subject: fixed missing context for cache record PUT operations (#503) --- src/zenserver/cache/httpstructuredcache.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/zenserver/cache/httpstructuredcache.cpp') 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); -- cgit v1.2.3