preserve replicated ETag properly on target (#16129)

This commit is contained in:
Poorna
2022-11-26 14:43:32 -08:00
committed by GitHub
parent ce53d7f6c2
commit 63fc6ba2cd
3 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -943,7 +943,7 @@ func (er erasureObjects) putObject(ctx context.Context, bucket string, object st
if opts.CheckPrecondFn != nil {
obj, err := er.getObjectInfo(ctx, bucket, object, opts)
if err != nil {
if err != nil && !isErrVersionNotFound(err) {
return objInfo, err
}
if opts.CheckPrecondFn(obj) {