diff options
| author | Stefan Boberg <[email protected]> | 2025-06-27 16:42:53 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-06-27 16:42:53 +0200 |
| commit | 1e845b9d0f548b6c67894654f83112399f1c8188 (patch) | |
| tree | 8bc31dcaac0876cac59042478fec386dd30c4551 /src/zenserver/cache/httpstructuredcache.cpp | |
| parent | added initial tracking of namespaces, buckets, keys (diff) | |
| parent | 5.6.14 (diff) | |
| download | zen-1e845b9d0f548b6c67894654f83112399f1c8188.tar.xz zen-1e845b9d0f548b6c67894654f83112399f1c8188.zip | |
Merge branch 'main' into rpc-analyze
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
| -rw-r--r-- | src/zenserver/cache/httpstructuredcache.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp index 9f2e826d6..bb0c55618 100644 --- a/src/zenserver/cache/httpstructuredcache.cpp +++ b/src/zenserver/cache/httpstructuredcache.cpp @@ -1593,10 +1593,19 @@ HttpStructuredCacheService::ReplayRequestRecorder(const CacheRequestContext& Co ZEN_INFO("Replaying {} requests", RequestCount); for (uint64_t RequestIndex = 0; RequestIndex < RequestCount; ++RequestIndex) { - Work.ScheduleWork(WorkerPool, [this, &Context, &Replayer, RequestIndex](std::atomic<bool>&) { + if (AbortFlag) + { + break; + } + Work.ScheduleWork(WorkerPool, [this, &Context, &Replayer, RequestIndex](std::atomic<bool>& AbortFlag) { IoBuffer Body; zen::cache::RecordedRequestInfo RequestInfo = Replayer.GetRequest(RequestIndex, /* out */ Body); + if (AbortFlag) + { + return; + } + if (Body) { uint32_t AcceptMagic = 0; |