mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 01:15:14 +08:00
- 非事务导入:import_manifest_bundles 中途某条目失败(如 AssetBundle 解析失败) 时,之前已写入的 CAS 对象和 ResourceRepository 行不回滚,留下部分导入状态。 改为记录本次写入的 object_id 与资源 id,任一条目失败时 best-effort 回滚 (删除资源行、对 store 增加的引用逐一 remove_reference)。 - find_bundle 跨目录同名:文件名回退无目录约束,jp/data.bundle 与 en/data.bundle 同名时可能静默取错数据。改为返回 Result:精确路径优先,文件名回退仅在唯一匹配 时采用,多个同名 bundle 时显式报错而非猜测。 新增单测:后续条目失败时回滚先前成功条目(资源行清空、CAS 引用回滚为 0)、 同名 bundle 歧义显式报错。 对应 issue #18 维护清单 2-2。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>