From 77699855a786af677aba352a4ab0bef5091f0944 Mon Sep 17 00:00:00 2001 From: aronneagu Date: Wed, 30 Nov 2022 15:43:30 +0000 Subject: [PATCH] Return ETag from remote when file doesn't exist on Filer (#4025) --- weed/filer/filechunks.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/filer/filechunks.go b/weed/filer/filechunks.go index de57a0532..061e0757a 100644 --- a/weed/filer/filechunks.go +++ b/weed/filer/filechunks.go @@ -42,6 +42,9 @@ func ETag(entry *filer_pb.Entry) (etag string) { } func ETagEntry(entry *Entry) (etag string) { + if entry.IsInRemoteOnly() { + return entry.Remote.RemoteETag + } if entry.Attr.Md5 == nil { return ETagChunks(entry.GetChunks()) }