diff options
| author | Stefan Boberg <[email protected]> | 2025-06-11 15:43:54 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-06-11 15:43:54 +0200 |
| commit | 49a640e2d207cf9c05f5c8a3de29de825e0c35ab (patch) | |
| tree | 70d1b17f33840e58881b76dbebcfa0008de02932 /src/zenutil/cache | |
| parent | Added recording_id metadata to RPC recordings (diff) | |
| download | zen-49a640e2d207cf9c05f5c8a3de29de825e0c35ab.tar.xz zen-49a640e2d207cf9c05f5c8a3de29de825e0c35ab.zip | |
add warning when detecting bad segment metadata
Diffstat (limited to 'src/zenutil/cache')
| -rw-r--r-- | src/zenutil/cache/rpcrecording.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenutil/cache/rpcrecording.cpp b/src/zenutil/cache/rpcrecording.cpp index 8ccebdbbc..1dba038ee 100644 --- a/src/zenutil/cache/rpcrecording.cpp +++ b/src/zenutil/cache/rpcrecording.cpp @@ -994,6 +994,10 @@ RecordedRequestsReader::BeginRead(const std::filesystem::path& BasePath, bool In TotalRequestCount += Info.RequestCount; MaxSegmentIndex = Max(MaxSegmentIndex, Info.SegmentIndex); } + else + { + ZEN_WARN("invalid segment metadata found in '{}' - ignoring", ZcbPath); + } } } } |