Repository navigation
Commit ee8ebf4
* Start refactor for #728
Assisted-by: Claude Code:claude-opus-5-5
* Share one stage-and-rename core in utils::fs
Every atomic file write (lockfiles, manifests, vendored artifacts,
group-commit replays) now goes through one blocking core that owns the
stage name, the stage's creation mode, the fsync, the
set-mode-then-rename order and the unlink on failure. The async
writers run it on the blocking pool, and the blob cache builds its
.socket-dl- stage name through the same helper. A hardening fix to the
write path now lands once instead of twice.
No behavior change: the same bytes, modes, fsyncs and stage names.
Refs #728
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: mikolalysenko <mik@socket.dev>
1 parent abd3c45 commit ee8ebf4
2 files changed
Lines changed: 256 additions & 180 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | 427 | | |
432 | 428 | | |
433 | 429 | | |
| |||
442 | 438 | | |
443 | 439 | | |
444 | 440 | | |
445 | | - | |
446 | | - | |
447 | | - | |
| 441 | + | |
448 | 442 | | |
449 | 443 | | |
450 | 444 | | |
| |||
0 commit comments