优化MMAP相关功能

This commit is contained in:
刘祥超
2024-04-04 08:28:14 +08:00
parent e5c5234be8
commit 4148681bb8
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)
}