diff --git a/db/merge_operator.cc b/db/merge_operator.cc index d96b165a6..a01d389e9 100644 --- a/db/merge_operator.cc +++ b/db/merge_operator.cc @@ -18,6 +18,7 @@ bool MergeOperator::PartialMergeMulti(const Slice& key, const std::deque& operand_list, std::string* new_value, Logger* logger) const { + assert(operand_list.size() >= 2); // Simply loop through the operands std::string temp_value; Slice temp_slice(operand_list[0]);