fix: close owned PCB startup failures before ICDB recovery

This commit is contained in:
阿白叔 committed 2026-11-02 17:40:18 +08:00
1 parent 39985f7cfd
commit ec78dd722c
5 files changed
+360 -1

No files matched your search

+4 -1
View File
@@ -866,7 +866,10 @@ def _run_verify(request, *, timing, progress=None, flag_reader=None, process_run
if dialog_result.error_code:
_write_failure_windows(root, latest_snapshots)
_write_process_tree(root, process, target_pid)
_stop_worker(process)
# A failed database load has no document to close. Give the
# worker time to normally close its owned empty PCB before
# recovery checks for remaining native database clients.
_stop_worker(process, timeout=40)
return finish(VerifyResult(
'FAIL',
stderr=f'{dialog_result.error_code}: {dialog_result.detail}',