Browse Source

errors when reading uncached files from cloud drive (#6674)

fix https://github.com/seaweedfs/seaweedfs/issues/6672
pull/2932/merge
Chris Lu 4 weeks ago
committed by GitHub
parent
commit
528702d30b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/mount/filehandle_read.go

2
weed/mount/filehandle_read.go

@ -89,7 +89,7 @@ func (fh *FileHandle) downloadRemoteEntry(entry *LockedEntry) error {
return fmt.Errorf("CacheRemoteObjectToLocalCluster file %s: %v", fileFullPath, err)
}
entry.SetEntry(resp.Entry)
fh.SetEntry(resp.Entry)
fh.wfs.metaCache.InsertEntry(context.Background(), filer.FromPbEntry(request.Directory, resp.Entry))

Loading…
Cancel
Save