diff options
| author | Stefan Boberg <[email protected]> | 2025-06-11 15:14:37 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-06-11 15:14:37 +0200 |
| commit | 29113409da4d2ee5f1ae46c1600d66c2617bb7e3 (patch) | |
| tree | 63b66bd14b8863bc69bb151c28bb2532d25f216d /src/zenserver/cache/httpstructuredcache.cpp | |
| parent | Skeleton of rpc recording analysis command (diff) | |
| parent | 5.6.12 (diff) | |
| download | zen-29113409da4d2ee5f1ae46c1600d66c2617bb7e3.tar.xz zen-29113409da4d2ee5f1ae46c1600d66c2617bb7e3.zip | |
Merge branch 'main' into rpc-analyze
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
| -rw-r--r-- | src/zenserver/cache/httpstructuredcache.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp index f7e63433b..9f2e826d6 100644 --- a/src/zenserver/cache/httpstructuredcache.cpp +++ b/src/zenserver/cache/httpstructuredcache.cpp @@ -1588,7 +1588,8 @@ HttpStructuredCacheService::ReplayRequestRecorder(const CacheRequestContext& Co Stopwatch Timer; auto _ = MakeGuard([&]() { ZEN_INFO("Replayed {} requests in {}", RequestCount, NiceLatencyNs(Timer.GetElapsedTimeUs() * 1000)); }); std::atomic<bool> AbortFlag; - ParallelWork Work(AbortFlag); + std::atomic<bool> PauseFlag; + ParallelWork Work(AbortFlag, PauseFlag); ZEN_INFO("Replaying {} requests", RequestCount); for (uint64_t RequestIndex = 0; RequestIndex < RequestCount; ++RequestIndex) { @@ -1638,8 +1639,8 @@ HttpStructuredCacheService::ReplayRequestRecorder(const CacheRequestContext& Co } }); } - Work.Wait(10000, [&](bool IsAborted, std::ptrdiff_t PendingWork) { - ZEN_UNUSED(IsAborted); + Work.Wait(10000, [&](bool IsAborted, bool IsPaused, std::ptrdiff_t PendingWork) { + ZEN_UNUSED(IsAborted, IsPaused); ZEN_INFO("Replayed {} of {} requests, elapsed {}", RequestCount - PendingWork, RequestCount, |