Update compression level in l2CompressImpl_zlib function
This commit is contained in:
parent
1cf109604c
commit
7549bf96e3
|
@ -188,7 +188,7 @@ int32_t l2ComressInitImpl_zlib(char *lossyColumns, float fPrecision, double dPre
|
||||||
int32_t l2CompressImpl_zlib(const char *const input, const int32_t inputSize, char *const output, int32_t outputSize,
|
int32_t l2CompressImpl_zlib(const char *const input, const int32_t inputSize, char *const output, int32_t outputSize,
|
||||||
const char type, int8_t lvl) {
|
const char type, int8_t lvl) {
|
||||||
uLongf dstLen = outputSize - 1;
|
uLongf dstLen = outputSize - 1;
|
||||||
int32_t ret = compress2((Bytef *)(output + 1), (uLongf *)&dstLen, (Bytef *)input, (uLong)inputSize, 9);
|
int32_t ret = compress2((Bytef *)(output + 1), (uLongf *)&dstLen, (Bytef *)input, (uLong)inputSize, lvl);
|
||||||
if (ret == Z_OK) {
|
if (ret == Z_OK) {
|
||||||
output[0] = 1;
|
output[0] = 1;
|
||||||
return dstLen + 1;
|
return dstLen + 1;
|
||||||
|
|
Loading…
Reference in New Issue