RFC-20 Phase 3: GC 集成 #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User Story
作为用户,运行
json-cas gc时,所有 variable 引用的 CAS 数据自动保留不被清理。没有 variable 引用的孤立数据被清除。前置条件
Phase 1 + Phase 2 已完成。
测试步骤
准备
GC 验证
Step 1: gc 保留 variable 引用的数据
预期: HASH_REF 仍然存在,返回正常节点数据
Step 2: gc 清除孤立数据
预期: HASH_ORPHAN 已被 gc 清除,返回 not found
Step 3: 删除 variable 后再 gc
预期: HASH_REF 不再有 variable 引用,被 gc 清除
Schema 也被保留
验证完成标准
✅ 所有 checkbox 打勾
✅
bun test通过✅
bun run check无 lint 错误Ref: #20, #19