From dd8f9e38e93231bf923bdf262ec9bd792be4f98b Mon Sep 17 00:00:00 2001 From: Ayappan Date: Fri, 7 Apr 2017 10:41:38 -0700 Subject: [PATCH] Fix compilation for GCC-5 Summary: Fixes this issue https://github.com/facebook/rocksdb/issues/2108 Closes https://github.com/facebook/rocksdb/pull/2109 Differential Revision: D4851965 Pulled By: yiwu-arbug fbshipit-source-id: 6ee807b --- 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 6ffb00fd3..0937e3ead 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -1154,7 +1154,7 @@ bool LevelCompactionBuilder::SetupOtherInputsIfNeeded() { if (!compaction_picker_->SetupOtherInputs( cf_name_, mutable_cf_options_, vstorage_, &start_level_inputs_, &output_level_inputs_, &parent_index_, base_index_)) { - return nullptr; + return false; } compaction_inputs_.push_back(start_level_inputs_);