叫我小杨同学
11d3c0748d
fix(core): atomicWrite 别走 fsp.open / fsyncSync / closeSync
hostFs.promises 只包了 readFile/writeFile/mkdir/unlink/rm/copyFile,没 open;
hostFs 的同步侧也没 fsyncSync/closeSync。启动种子调 atomicWriteFile 立刻
抛 TypeError: fsp.open is not a function,applyBoot 整个倒下。
现在 atomicWriteSync/atomicWriteFile 只用 writeFile+rename,原子性靠 rename
(POSIX / Windows MoveFileEx),断电丢最新一次写入可接受,下一次 apply 补。
atomicCopyFile 原本就只用 copyFile+rename,不受影响。
2026-10-09 12:16:55 +08:00
..
2026-10-09 01:32:17 +08:00
2026-10-08 16:52:44 +08:00
2026-10-02 17:25:49 +08:00
2026-09-29 18:15:28 +08:00
2026-10-09 11:52:39 +08:00
2026-10-09 12:16:55 +08:00
2026-10-09 11:52:39 +08:00
2026-10-04 13:06:19 +08:00
2026-10-09 11:52:39 +08:00
2026-09-29 18:15:28 +08:00
2026-10-09 11:52:39 +08:00
2026-10-05 01:36:46 +08:00
2026-10-03 13:54:38 +08:00
2026-10-09 11:52:39 +08:00
2026-10-09 11:52:39 +08:00
2026-10-09 11:52:39 +08:00
2026-10-08 11:04:18 +08:00
2026-10-08 00:30:37 +08:00
2026-09-25 02:47:29 +08:00
2026-10-09 11:52:39 +08:00
2026-10-09 11:52:39 +08:00
2026-10-06 23:32:54 +08:00
2026-10-03 13:54:38 +08:00
2026-10-09 11:52:39 +08:00
2026-10-09 11:52:39 +08:00
2026-10-07 18:13:19 +08:00
2026-10-09 11:52:39 +08:00
2026-10-02 13:55:13 +08:00
2026-09-19 00:51:25 +08:00
2026-09-19 00:51:25 +08:00
2026-09-18 15:10:15 +08:00
2026-10-04 13:06:19 +08:00
2026-10-09 11:52:39 +08:00
2026-10-03 13:54:38 +08:00
2026-09-28 18:28:55 +08:00