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

fix https://github.com/seaweedfs/seaweedfs/issues/6672
This commit is contained in:
Chris Lu 2025-03-29 16:44:01 -07:00 committed by GitHub
parent 46b3a71a1f
commit 528702d30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))