fs: fix a regression allow reading of existing files (#5889)

This commit is contained in:
Harshavardhana 2018-05-07 17:00:44 -07:00 committed by Dee Koder
parent 2ecc976950
commit c98d8cb1c7

View File

@ -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)
if perr != nil {
return toObjectErr(perr, bucket, object)