mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-21 19:10:11 +08:00
Return ETag from remote when file doesn't exist on Filer (#4025)
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user