mount: cache on reading remote storage

This commit is contained in:
Chris Lu
2021-08-09 22:11:57 -07:00
parent a7012d9729
commit 69655ba8e5
4 changed files with 42 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ import (
"github.com/viant/ptrie"
)
func (entry *Entry) IsInRemoteOnly() bool {
return len(entry.Chunks) == 0 && entry.RemoteEntry != nil && entry.RemoteEntry.RemoteSize > 0
}
func ToFileIdObject(fileIdStr string) (*FileId, error) {
t, err := needle.ParseFileIdFromString(fileIdStr)
if err != nil {