mirror of
https://github.com/minio/minio.git
synced 2025-01-22 20:23:14 -05:00
fs+cache: Remove compression tag (#13346)
Remove compression indication from cached data. Fixes #13342
This commit is contained in:
parent
ffd497673f
commit
7203d93fb3
@ -938,6 +938,11 @@ func (c *diskCache) Get(ctx context.Context, bucket, object string, rs *HTTPRang
|
||||
rs = nil
|
||||
}
|
||||
|
||||
if objInfo.IsCompressed() {
|
||||
// Cache isn't compressed.
|
||||
delete(objInfo.UserDefined, ReservedMetadataPrefix+"compression")
|
||||
}
|
||||
|
||||
// For a directory, we need to send an reader that returns no bytes.
|
||||
if HasSuffix(object, SlashSeparator) {
|
||||
// The lock taken above is released when
|
||||
@ -945,7 +950,6 @@ func (c *diskCache) Get(ctx context.Context, bucket, object string, rs *HTTPRang
|
||||
gr, gerr := NewGetObjectReaderFromReader(bytes.NewBuffer(nil), objInfo, opts)
|
||||
return gr, numHits, gerr
|
||||
}
|
||||
|
||||
fn, off, length, nErr := NewGetObjectReader(rs, objInfo, opts)
|
||||
if nErr != nil {
|
||||
return nil, numHits, nErr
|
||||
|
Loading…
x
Reference in New Issue
Block a user