From b678cb1f8611f4981013c1b01a235652cb48b3c0 Mon Sep 17 00:00:00 2001 From: zaorangyang <45813655+zaorangyang@users.noreply.github.com> Date: Thu, 15 Jul 2021 18:05:58 -0700 Subject: [PATCH] =?UTF-8?q?The=20formal=20parameter=20types=20of=20Compres?= =?UTF-8?q?sionOptions=20constructor=20should=20b=E2=80=A6=20(#8510)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: …e consistent with the member variables's Pull Request resolved: https://github.com/facebook/rocksdb/pull/8510 Reviewed By: ajkr Differential Revision: D29654067 Pulled By: mrambacher fbshipit-source-id: 908baaddfb20c266db7c5aca6a87971393d62ee6 --- include/rocksdb/advanced_options.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/rocksdb/advanced_options.h b/include/rocksdb/advanced_options.h index 7804ec46b6..1c4f09b76b 100644 --- a/include/rocksdb/advanced_options.h +++ b/include/rocksdb/advanced_options.h @@ -173,9 +173,10 @@ struct CompressionOptions { parallel_threads(1), enabled(false), max_dict_buffer_bytes(0) {} - CompressionOptions(int wbits, int _lev, int _strategy, int _max_dict_bytes, - int _zstd_max_train_bytes, int _parallel_threads, - bool _enabled, uint64_t _max_dict_buffer_bytes) + CompressionOptions(int wbits, int _lev, int _strategy, + uint32_t _max_dict_bytes, uint32_t _zstd_max_train_bytes, + uint32_t _parallel_threads, bool _enabled, + uint64_t _max_dict_buffer_bytes) : window_bits(wbits), level(_lev), strategy(_strategy),