From 35b83327a76b41e5109ce0287f0677c320bef28c Mon Sep 17 00:00:00 2001 From: Huachao Huang Date: Thu, 5 Jul 2018 20:10:37 -0700 Subject: [PATCH] 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 --- db/compaction_picker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/compaction_picker.cc b/db/compaction_picker.cc index db691ff74..b8f566afe 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -705,7 +705,7 @@ Compaction* CompactionPicker::CompactRange( GetCompressionType(ioptions_, vstorage, mutable_cf_options, output_level, vstorage->base_level()), GetCompressionOptions(ioptions_, vstorage, output_level), - /* max_subcompactions */ 0, std::move(grandparents), + max_subcompactions, std::move(grandparents), /* is manual compaction */ true); TEST_SYNC_POINT_CALLBACK("CompactionPicker::CompactRange:Return", compaction);