🔴 [H5] 后台索引器:索引快照与缓存哈希不匹配 #5
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?
文件:
core/io/progressive_reader.rs:315-317分类: 缓存一致性
问题:
spawn_indexer从 mmap 快照构建LineIndex,然后IndexCache::save()重新打开文件路径计算哈希。如果文件在两步之间变化,会把旧索引存为新文件的缓存。建议修复: 从同一快照计算并存储指纹,或在索引前后校验元数据。