aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/cache
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-06-11 15:43:54 +0200
committerStefan Boberg <[email protected]>2025-06-11 15:43:54 +0200
commit49a640e2d207cf9c05f5c8a3de29de825e0c35ab (patch)
tree70d1b17f33840e58881b76dbebcfa0008de02932 /src/zenutil/cache
parentAdded recording_id metadata to RPC recordings (diff)
downloadzen-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.cpp4
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);
+ }
}
}
}