mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
rename
This commit is contained in:
parent
9df7d16791
commit
767edd3c08
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue