mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Add missing error check in cache GetObjectNInfo (#8889)
This commit is contained in:
@@ -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)
|
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
|
// Record if cache has a hit that was invalidated by ETag verification
|
||||||
if cacheErr == nil {
|
if cacheErr == nil {
|
||||||
bkReader.ObjInfo.CacheLookupStatus = CacheHit
|
bkReader.ObjInfo.CacheLookupStatus = CacheHit
|
||||||
|
|||||||
Reference in New Issue
Block a user