Files
DeepTutor/deeptutor/services
Bingxi Zhao (Frank) 96a3b5db6b refactor(knowledge): unify all manager JSON writes on services.file_io atomic writer
Follow-up to #619: every kb_config.json / metadata.json write in
KnowledgeBaseManager now goes through atomic_write_json (temp file +
fsync + os.replace) instead of the truncate-then-lock pattern, so a
crash mid-write can no longer leave a truncated config and concurrent
readers always see a complete previous or new file. The JSON variant
in services.file_io gains the same tolerant fsync as its text sibling,
the now-redundant private helper and dead file_lock_exclusive are
removed, and the atomicity-contract test moves next to the shared
writer in tests/services/test_file_io.py.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 00:50:07 +08:00
..
2026-07-18 19:47:03 +08:00
2026-06-17 00:56:27 +08:00
2026-07-18 19:47:03 +08:00
2026-06-18 00:22:48 +08:00
2026-06-11 20:03:34 +08:00
2026-05-08 02:36:24 +08:00
2026-07-04 16:40:08 +08:00
2026-06-11 20:03:34 +08:00
2026-07-18 19:47:03 +08:00
2026-06-17 00:56:27 +08:00
2026-06-11 20:03:34 +08:00
2026-06-29 23:06:30 +08:00
2026-06-11 20:03:34 +08:00
2026-06-17 00:56:27 +08:00
2026-06-18 00:22:48 +08:00
2026-06-11 20:03:34 +08:00
2026-06-18 22:16:31 +08:00
2026-06-17 00:56:27 +08:00
2026-06-18 00:22:48 +08:00
2026-06-17 00:56:27 +08:00