fix: ensure metadata update happens after deletemarker replication (#15564)

Fixes regression caused by #15521
This commit is contained in:
Poorna 2022-08-22 15:59:06 -07:00 committed by GitHub
parent c54c13831a
commit 471467d310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1502,10 +1502,11 @@ func (er erasureObjects) DeleteObject(ctx context.Context, bucket, object string
modTime = UTCNow()
}
fvID := mustGetUUID()
if markDelete && (opts.Versioned || opts.VersionSuspended) {
fi := FileInfo{
Name: object,
Deleted: deleteMarker,
Deleted: true,
MarkDeleted: markDelete,
ModTime: modTime,
ReplicationState: opts.DeleteReplication,