mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
fs: fix a regression allow reading of existing files (#5889)
This commit is contained in:
parent
2ecc976950
commit
c98d8cb1c7
@ -480,7 +480,7 @@ func (fs *FSObjects) getObject(ctx context.Context, bucket, object string, offse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if etag != "" {
|
if etag != "" && etag != defaultEtag {
|
||||||
objEtag, perr := fs.getObjectETag(ctx, bucket, object, lock)
|
objEtag, perr := fs.getObjectETag(ctx, bucket, object, lock)
|
||||||
if perr != nil {
|
if perr != nil {
|
||||||
return toObjectErr(perr, bucket, object)
|
return toObjectErr(perr, bucket, object)
|
||||||
|
Loading…
Reference in New Issue
Block a user