Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed May 24, 2024
1 parent b1e6de3 commit 1b15f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/util/block_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class Lz4fBlockCompression : public BlockCompressionCodec {
}

auto wbytes = LZ4F_compressBegin(context->ctx, compressed_buf.data, compressed_buf.size,
&_s_preferences);
&_s_preferences);
if (LZ4F_isError(wbytes)) {
compress_failed = true;
return Status::InvalidArgument("Fail to do LZ4F compress begin, res={}",
Expand Down Expand Up @@ -897,7 +897,7 @@ class ZstdBlockCompression : public BlockCompressionCodec {

// set compression level to default 3
auto ret = ZSTD_CCtx_setParameter(context->ctx, ZSTD_c_compressionLevel,
ZSTD_CLEVEL_DEFAULT);
ZSTD_CLEVEL_DEFAULT);
if (ZSTD_isError(ret)) {
return Status::InvalidArgument("ZSTD_CCtx_setParameter compression level error: {}",
ZSTD_getErrorString(ZSTD_getErrorCode(ret)));
Expand Down

0 comments on commit 1b15f0e

Please sign in to comment.