From 505322f8ea80dd48660ed15194f4d6dfac10ad76 Mon Sep 17 00:00:00 2001 From: WangPengfei Date: Mon, 3 Aug 2020 09:44:11 +0800 Subject: [PATCH] modified: common/legacy_config_opts.h modified: common/options.cc modified: compressor/Compressor.h modified: compressor/QatAccel.cc modified: compressor/QatAccel.h modified: compressor/brotli/BrotliCompressor.cc modified: compressor/brotli/BrotliCompressor.h modified: compressor/lz4/LZ4Compressor.h modified: compressor/snappy/SnappyCompressor.h modified: compressor/zlib/ZlibCompressor.cc modified: compressor/zlib/ZlibCompressor.h modified: compressor/zstd/ZstdCompressor.h modified: os/bluestore/BlueStore.cc modified: os/bluestore/bluestore_types.cc modified: os/bluestore/bluestore_types.h modified: rgw/rgw_compression.cc modified: rgw/rgw_compression.h modified: rgw/rgw_json_enc.cc modified: rgw/rgw_op.cc modified: rgw/rgw_rados.cc modified: rgw/rgw_rados.h modified: test/compressor/compressor_example.h modified: test/compressor/test_compression.cc modified: test/rgw/test_rgw_compression.cc Signed-off-by: WangPengfei --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 5 ++ src/compressor/Compressor.h | 6 +- src/compressor/QatAccel.cc | 9 +-- src/compressor/QatAccel.h | 6 +- src/compressor/brotli/BrotliCompressor.cc | 9 +-- src/compressor/brotli/BrotliCompressor.h | 6 +- src/compressor/lz4/LZ4Compressor.h | 15 ++--- src/compressor/snappy/SnappyCompressor.h | 15 ++--- src/compressor/zlib/ZlibCompressor.cc | 32 ++++++----- src/compressor/zlib/ZlibCompressor.h | 10 ++-- src/compressor/zstd/ZstdCompressor.h | 9 +-- src/os/bluestore/BlueStore.cc | 6 +- src/os/bluestore/bluestore_types.cc | 3 + src/os/bluestore/bluestore_types.h | 6 +- src/rgw/rgw_compression.cc | 4 +- src/rgw/rgw_compression.h | 2 + src/rgw/rgw_json_enc.cc | 3 + src/rgw/rgw_op.cc | 3 + src/rgw/rgw_rados.cc | 1 + src/rgw/rgw_rados.h | 10 +++- src/test/compressor/compressor_example.h | 6 +- src/test/compressor/test_compression.cc | 68 +++++++++++++---------- src/test/rgw/test_rgw_compression.cc | 2 + 24 files changed, 145 insertions(+), 92 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 7aae31e8ea..cf6f9e874f 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -96,6 +96,7 @@ OPTION(xio_max_send_inline, OPT_INT) // xio maximum threshold to send inline OPTION(compressor_zlib_isal, OPT_BOOL) OPTION(compressor_zlib_level, OPT_INT) //regular zlib compression level, not applicable to isa-l optimized version +OPTION(compressor_zlib_winsize, OPT_INT) OPTION(qat_compressor_enabled, OPT_BOOL) diff --git a/src/common/options.cc b/src/common/options.cc index 8135ea8f1e..91a8472a1c 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -816,6 +816,11 @@ std::vector