mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
add delete-marker proactively in DeleteObject() (#13795)
single object delete was not working properly on a bucket when versioning was suspended, current version 'null' object was never removed. added unit tests to cover the behavior fixes #13783
This commit is contained in:
@@ -647,6 +647,10 @@ func (z *erasureServerPools) MakeBucketWithLocation(ctx context.Context, bucket
|
||||
meta.ObjectLockConfigXML = enabledBucketObjectLockConfig
|
||||
}
|
||||
|
||||
if opts.VersioningEnabled {
|
||||
meta.VersioningConfigXML = enabledBucketVersioningConfig
|
||||
}
|
||||
|
||||
if err := meta.Save(context.Background(), z); err != nil {
|
||||
return toObjectErr(err, bucket)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user