mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: ensure metadata update happens after deletemarker replication (#15564)
Fixes regression caused by #15521
This commit is contained in:
parent
c54c13831a
commit
471467d310
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user