Skip to content

Commit 67f8a8c

Browse files
author
easonLiangWorldedtech
committed
feat(file-safety): atomic text publish primitive (U1, #1375)
Split unit U1 of #1833. The publish path writes to a staging file, fsyncs it, then commits with a rename; on POSIX the parent directory is fsynced so the directory entry is durable too. A failed publish rolls the backup back, and when that rollback also fails the error reports the partial state instead of only the publish failure.
1 parent a1cc065 commit 67f8a8c

2 files changed

Lines changed: 1342 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)