diff --git a/db/range_del_aggregator.h b/db/range_del_aggregator.h index e593807d5..ce7897a97 100644 --- a/db/range_del_aggregator.h +++ b/db/range_del_aggregator.h @@ -320,8 +320,10 @@ class RangeDelAggregator { RangeDelPositioningMode mode); void Invalidate() { - InvalidateForwardIter(); - InvalidateReverseIter(); + if (!IsEmpty()) { + InvalidateForwardIter(); + InvalidateReverseIter(); + } } bool IsRangeOverlapped(const Slice& start, const Slice& end);