mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
parent
ef517bd0da
commit
d732b1ff9d
@ -303,7 +303,7 @@ func (c cacheObjects) GetObject(ctx context.Context, bucket, object string, star
|
|||||||
}
|
}
|
||||||
dcache.Delete(ctx, bucket, object)
|
dcache.Delete(ctx, bucket, object)
|
||||||
}
|
}
|
||||||
if startOffset != 0 || length != objInfo.Size {
|
if startOffset != 0 || (length > 0 && length != objInfo.Size) {
|
||||||
// We don't cache partial objects.
|
// We don't cache partial objects.
|
||||||
return GetObjectFn(ctx, bucket, object, startOffset, length, writer, etag, opts)
|
return GetObjectFn(ctx, bucket, object, startOffset, length, writer, etag, opts)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user