This commit is contained in:
Chris Lu 2021-07-31 23:52:09 -07:00
parent 9df7d16791
commit 767edd3c08
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
)
func (entry *Entry) IsRemoteOnly() bool {
func (entry *Entry) IsInRemoteOnly() bool {
return len(entry.Chunks) == 0 && entry.Remote != nil && entry.Remote.Size > 0
}

View file

@ -163,7 +163,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
return err
}
if entry.IsRemoteOnly() {
if entry.IsInRemoteOnly() {
var data []byte
data, err = fs.filer.ReadRemote(entry, offset, size)
if err != nil {