diff options
| author | Stefan Boberg <[email protected]> | 2023-10-27 12:38:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-27 12:38:57 +0200 |
| commit | df569c783a23e2d4195c7205256a190d4f4b92c7 (patch) | |
| tree | a345260f76b2322350c58ef2e131eb75fe425b81 /src/zenserver/cache/httpstructuredcache.cpp | |
| parent | fix CacheBucket::CollectGarbage removing standalone entries without an exclus... (diff) | |
| download | zen-df569c783a23e2d4195c7205256a190d4f4b92c7.tar.xz zen-df569c783a23e2d4195c7205256a190d4f4b92c7.zip | |
fixed missing context for cache record PUT operations (#503)
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
| -rw-r--r-- | src/zenserver/cache/httpstructuredcache.cpp | 8 |
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); |