mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Return ETag from remote when file doesn't exist on Filer (#4025)
This commit is contained in:
parent
f59c3acd5f
commit
77699855a7
|
@ -42,6 +42,9 @@ func ETag(entry *filer_pb.Entry) (etag string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ETagEntry(entry *Entry) (etag string) {
|
func ETagEntry(entry *Entry) (etag string) {
|
||||||
|
if entry.IsInRemoteOnly() {
|
||||||
|
return entry.Remote.RemoteETag
|
||||||
|
}
|
||||||
if entry.Attr.Md5 == nil {
|
if entry.Attr.Md5 == nil {
|
||||||
return ETagChunks(entry.GetChunks())
|
return ETagChunks(entry.GetChunks())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue