XGameRuntime: a save update applies all its steps or none #616
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/621"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T02:37:21Z.
XGameSaveSubmitUpdate wrote each blob with its own temp-and-rename, so a write that failed halfway left the container with part of the update applied. Every blob is now staged under a
~xcltmp.name first and then renamed in order; if a step fails, the steps already applied are rolled back.write_atomichad no other caller and is removed.Fixes #324
What is in it
gamesave.rs:stage_file,Step, the staged/rollbackapply(); one existing test adapteda_failing_write_leaves_the_whole_update_undone(fails without the fix) andan_update_applies_its_steps_in_orderTested
cargo test --workspace -- --test-threads=4: 647 passed, 0 failed, 21 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
scripts/smoke.ps1againstNot tested
scripts/smoke.ps1main vs PR headAI use
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T03:22:29Z.
Closing: #491 (and #543) already cover this and were opened earlier. Please review those instead.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Pull request closed