fix(webui): serialize manifest reads with atomic replacement
This commit is contained in:
1 parent
432421bceb
commit
9d7cc0204c
2 files changed
+44
-8
No files matched your search
@@ -597,9 +597,7 @@ def _read_segment_manifest_entries(
|
||||
*,
|
||||
stats: TranscriptReplayStats | None = None,
|
||||
) -> list[dict[str, Any]]:
|
||||
entries = _load_segment_manifest_entries(session_key)
|
||||
if entries is not None:
|
||||
return entries
|
||||
# Windows requires readers to close the manifest before atomic replacement.
|
||||
with _manifest_rebuild_lock(session_key):
|
||||
entries = _load_segment_manifest_entries(session_key)
|
||||
if entries is not None:
|
||||
|
||||
Reference in new issue
Block a user