fix: allow past retention headers to be copied in batch replication (#17095)

This commit is contained in:
Poorna 2023-04-27 13:43:18 -07:00 committed by GitHub
parent 2448a9e047
commit 98c26df53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1355,9 +1355,10 @@ func batchReplicationOpts(ctx context.Context, sc string, objInfo ObjectInfo) (p
return putOpts, err
}
putOpts.Internal = miniogo.AdvancedPutOptions{
SourceVersionID: objInfo.VersionID,
SourceMTime: objInfo.ModTime,
SourceETag: objInfo.ETag,
SourceVersionID: objInfo.VersionID,
SourceMTime: objInfo.ModTime,
SourceETag: objInfo.ETag,
ReplicationRequest: true,
}
return putOpts, nil
}