Revision ec711b23152ca4e426057557784af322a2065fbc authored by mrambacher on 17 July 2020, 02:04:44 UTC, committed by Facebook GitHub Bot on 17 July 2020, 02:06:31 UTC
Summary:
This PR does a few things:
- The "compression_opts" and "bottom_compression_opts" can now be read/written as name/value pairs of options (instead of only a colon-separated list;
- These options can now be read/written to the Options file;
- The parallel_threads value can now be set (either in the colon or name-value format).

The compression options are now stored and treated as a OptionTypeInfo::Struct by the options system, meaning they can be read and written like the other structs.  This change allows them to be read/written easily to the options file.

Additionally, the colon-format was extended to allow support for setting parallel threads.  Tests were added to test all of the option settings via the optional parameters in the colon format.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/6817

Reviewed By: ajkr

Differential Revision: D22396004

Pulled By: zhichao-cao

fbshipit-source-id: 38bcf74b7e9cd5bc2a84540fac2e9ba4f765b2c8
1 parent c5ddece
History
File Mode Size
composite_env_wrapper.h -rw-r--r-- 40.1 KB
env.cc -rw-r--r-- 13.4 KB
env_basic_test.cc -rw-r--r-- 13.3 KB
env_chroot.cc -rw-r--r-- 12.6 KB
env_chroot.h -rw-r--r-- 704 bytes
env_encryption.cc -rw-r--r-- 33.9 KB
env_hdfs.cc -rw-r--r-- 19.6 KB
env_posix.cc -rw-r--r-- 16.5 KB
env_test.cc -rw-r--r-- 69.1 KB
file_system.cc -rw-r--r-- 4.4 KB
file_system_tracer.cc -rw-r--r-- 13.3 KB
file_system_tracer.h -rw-r--r-- 12.4 KB
fs_posix.cc -rw-r--r-- 33.2 KB
io_posix.cc -rw-r--r-- 44.9 KB
io_posix.h -rw-r--r-- 13.9 KB
io_posix_test.cc -rw-r--r-- 4.2 KB
mock_env.cc -rw-r--r-- 20.5 KB
mock_env.h -rw-r--r-- 4.0 KB
mock_env_test.cc -rw-r--r-- 2.7 KB

back to top