Detect multipart uploads correctly in unencrypted case (#13176)

This is a fix building on #13171 to ensure objects uploaded using multipart are 
replicated as multipart
This commit is contained in:
Poorna Krishnamoorthy
2021-09-09 10:52:49 -04:00
committed by GitHub
parent 950fe73c4f
commit 418f8bed6a

View File

@@ -75,7 +75,8 @@ func (o *ObjectInfo) isMultipart() bool {
if len(o.Parts) == 0 {
return false
}
if !crypto.IsMultiPart(o.UserDefined) {
_, encrypted := crypto.IsEncrypted(o.UserDefined)
if encrypted && !crypto.IsMultiPart(o.UserDefined) {
return false
}
for _, part := range o.Parts {