diff --git a/db/forward_iterator.cc b/db/forward_iterator.cc index cfebaa31a54..6074c4d1201 100644 --- a/db/forward_iterator.cc +++ b/db/forward_iterator.cc @@ -566,7 +566,7 @@ void ForwardIterator::RebuildIterators(bool refresh_sv) { sv_ = cfd_->GetReferencedSuperVersion(&(db_->mutex_)); } RangeDelAggregator range_del_agg( - InternalKeyComparator(cfd_->internal_comparator()), {} /* snapshots */); + cfd_->internal_comparator(), {} /* snapshots */); mutable_iter_ = sv_->mem->NewIterator(read_options_, &arena_); sv_->imm->AddIterators(read_options_, &imm_iters_, &arena_); if (!read_options_.ignore_range_deletions) { @@ -621,7 +621,7 @@ void ForwardIterator::RenewIterators() { mutable_iter_ = svnew->mem->NewIterator(read_options_, &arena_); svnew->imm->AddIterators(read_options_, &imm_iters_, &arena_); RangeDelAggregator range_del_agg( - InternalKeyComparator(cfd_->internal_comparator()), {} /* snapshots */); + cfd_->internal_comparator(), {} /* snapshots */); if (!read_options_.ignore_range_deletions) { std::unique_ptr range_del_iter( svnew->mem->NewRangeTombstoneIterator(read_options_));