Remove fast path exit to allow compressing headers and zero paddings via LZ4.
This commit is contained in:
parent
5e484f0694
commit
316d5aa4a8
1 changed files with 0 additions and 6 deletions
|
@ -106,12 +106,6 @@ lz4_compress(void *src, uint64_t srclen, void *dst, uint64_t *dstlen,
|
|||
int _srclen = srclen;
|
||||
uchar_t *dst2;
|
||||
|
||||
/*
|
||||
* Ignore compressed data in fast modes.
|
||||
*/
|
||||
if (lzdat->level < 3 && PC_TYPE(btype) == TYPE_COMPRESSED)
|
||||
return (-1);
|
||||
|
||||
if (lzdat->level == 1) {
|
||||
rv = LZ4_compress((const char *)src, (char *)dst, _srclen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue