fix: prove retained database release before batch admission

This commit is contained in:
阿白叔 committed 2026-11-25 14:33:32 +08:00
1 parent b3d69ee722
commit 33a41b25fb
2 files changed
+24 -1

No files matched your search

+4 -1
View File
@@ -1605,8 +1605,11 @@ def wait_for_batch_release(request, context, *, progress=None, timeout_seconds=1
context.check_active()
if library_available(library, live_only=True):
try:
# A restarted observer owns no in-process LibraryLock.
# Its exited client still requires a proof for the recorded scope.
recheck_previous_release(library, Path(request.evidence_dir)/'previous-release',
block_name=request.block_name, stop=context.stop, infer_scope=True)
block_name=request.block_name, stop=context.stop, infer_scope=True,
required=not library_available(library))
except LibraryBusy as error:
detail = str(error)
else: