Browse Source

rename

pull/2241/head
Chris Lu 4 years ago
parent
commit
767edd3c08
  1. 2
      weed/filer/read_remote.go
  2. 2
      weed/server/filer_server_handlers_read.go

2
weed/filer/read_remote.go

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

2
weed/server/filer_server_handlers_read.go

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

Loading…
Cancel
Save