From 767edd3c0802f3e22d6aef4e75f0e8805b748617 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 31 Jul 2021 23:52:09 -0700 Subject: [PATCH] rename --- weed/filer/read_remote.go | 2 +- weed/server/filer_server_handlers_read.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/read_remote.go b/weed/filer/read_remote.go index 26e220445..d9423ceda 100644 --- a/weed/filer/read_remote.go +++ b/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 } diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index a3980cd0a..86454f8c5 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/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 {