]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
db_bench: let -benchmark=compact respect -subcompactions (#11077)
authorleipeng <peng@topling.cn>
Fri, 13 Jan 2023 19:47:26 +0000 (11:47 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 13 Jan 2023 19:47:26 +0000 (11:47 -0800)
commit3941c349501c516bdbfb06d3821bbbdb0d0d821c
treec9c712874657722dd4b63178add7fffc693d825a
parent1cfe3528a224427310772bde698ba768cb5d9d05
db_bench: let -benchmark=compact respect -subcompactions (#11077)

Summary:
When running `-benchmarks=compact`, `-subcompactions` does not take effect.

`-subcompactions` option comment says it is for L0-L1 compactions, it is natural to extend it to CompactionRangeOptions.max_subcompactions.

This PR set CompactionRangeOptions.max_subcompactions = FLAGS_subcompactions

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

Reviewed By: akankshamahajan15

Differential Revision: D42506251

Pulled By: ajkr

fbshipit-source-id: f77c9a99d32ff7af59f3c452c9e16aaeb0360304
tools/db_bench_tool.cc