mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Add missing error check in cache GetObjectNInfo (#8889)
This commit is contained in:
parent
cf37c7997e
commit
a78e5d4763
@ -284,6 +284,9 @@ func (c *cacheObjects) GetObjectNInfo(ctx context.Context, bucket, object string
|
||||
}
|
||||
|
||||
bkReader, bkErr := c.GetObjectNInfoFn(ctx, bucket, object, rs, h, lockType, opts)
|
||||
if bkErr != nil {
|
||||
return bkReader, bkErr
|
||||
}
|
||||
// Record if cache has a hit that was invalidated by ETag verification
|
||||
if cacheErr == nil {
|
||||
bkReader.ObjInfo.CacheLookupStatus = CacheHit
|
||||
|
Loading…
Reference in New Issue
Block a user