fix: recognize native startup journal order during recovery

This commit is contained in:
阿白叔 committed 2026-11-25 09:48:26 +08:00
1 parent 5bab125122
commit 806c1696ab
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -956,11 +956,11 @@ def _orphan_prewrite_client(path, job, session, state, identities):
'identity_verified', 'startup_close_requested', 'diagnostic_wm_close')
for event in events):
return None
stages = ('startup_supervisor_no_write', 'startup_prewrite_ready', 'pcb_baseline', 'pcb_worker_started')
stages = ('startup_supervisor_no_write', 'pcb_baseline', 'startup_prewrite_ready', 'pcb_worker_started')
startup = [event for event in events if event.get('stage') in stages]
if tuple(event['stage'] for event in startup) != stages:
return None
waiting, ready, baseline, started = startup
waiting, baseline, ready, started = startup
if any(event.get(key) != job[key] for event in (waiting, ready)
for key in ('operation_id', 'project', 'pcb', 'desktop')):
return None