优化MMAP相关功能

This commit is contained in:
GoEdgeLab
2024-04-04 08:28:14 +08:00
parent 4c30c28b4c
commit dcd8a0e020
12 changed files with 65 additions and 61 deletions

View File

@@ -78,7 +78,7 @@ func (this *KVFileList) Add(hash string, item *Item) error {
}
// Exist 检查内容是否存在
func (this *KVFileList) Exist(hash string) (bool, error) {
func (this *KVFileList) Exist(hash string) (bool, int64, error) {
return this.getStore(hash).ExistItem(hash)
}