compaction: fix max_subcompactions option for CompactRange (#4082)

Summary:
The max_subcompactions option was introduced in https://github.com/facebook/rocksdb/pull/3775.
Closes https://github.com/facebook/rocksdb/pull/4082

Differential Revision: D8743258

Pulled By: ajkr

fbshipit-source-id: d60ee75769dfc19ab6f8754e4ff3a267848f1ed9
This commit is contained in:
Huachao Huang 2018-07-05 20:10:37 -07:00 committed by Facebook Github Bot
parent 39218a72a4
commit 35b83327a7

View file

@ -705,7 +705,7 @@ Compaction* CompactionPicker::CompactRange(
GetCompressionType(ioptions_, vstorage, mutable_cf_options, output_level, GetCompressionType(ioptions_, vstorage, mutable_cf_options, output_level,
vstorage->base_level()), vstorage->base_level()),
GetCompressionOptions(ioptions_, vstorage, output_level), GetCompressionOptions(ioptions_, vstorage, output_level),
/* max_subcompactions */ 0, std::move(grandparents), max_subcompactions, std::move(grandparents),
/* is manual compaction */ true); /* is manual compaction */ true);
TEST_SYNC_POINT_CALLBACK("CompactionPicker::CompactRange:Return", compaction); TEST_SYNC_POINT_CALLBACK("CompactionPicker::CompactRange:Return", compaction);