mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: getPoolIdx decouple from top level options (#11512)
top-level options shouldn't be passed down for GetObjectInfo() while verifying the objects in different pools, this is to make sure that we always get the value from the pool where the object exists.
This commit is contained in:
1 parent
682482459d
commit
cbf4bb62e0
3 files changed
+19
-25
No files matched your search
@@ -460,6 +460,7 @@ func (er erasureObjects) getObjectInfo(ctx context.Context, bucket, object strin
|
||||
// Make sure to return object info to provide extra information.
|
||||
return objInfo, toObjectErr(errMethodNotAllowed, bucket, object)
|
||||
}
|
||||
|
||||
if fi.Deleted {
|
||||
if opts.VersionID == "" || opts.DeleteMarker {
|
||||
return objInfo, toObjectErr(errFileNotFound, bucket, object)
|
||||
|
||||
Reference in new issue
Block a user