mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -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()
|
modTime = UTCNow()
|
||||||
}
|
}
|
||||||
fvID := mustGetUUID()
|
fvID := mustGetUUID()
|
||||||
|
|
||||||
if markDelete && (opts.Versioned || opts.VersionSuspended) {
|
if markDelete && (opts.Versioned || opts.VersionSuspended) {
|
||||||
fi := FileInfo{
|
fi := FileInfo{
|
||||||
Name: object,
|
Name: object,
|
||||||
Deleted: deleteMarker,
|
Deleted: true,
|
||||||
MarkDeleted: markDelete,
|
MarkDeleted: markDelete,
|
||||||
ModTime: modTime,
|
ModTime: modTime,
|
||||||
ReplicationState: opts.DeleteReplication,
|
ReplicationState: opts.DeleteReplication,
|
||||||
|
Loading…
Reference in New Issue
Block a user