Remove unnecessary asserts in table/merger.cc

Summary:
The asserts introduced in https://reviews.facebook.net/D7629 are
wrong.

The direction of iteration is changed after the function call so they
assert's fail.

Test Plan: make clean check

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D7827
main
Abhishek Kona 12 years ago
parent d8371ef1f6
commit 2e1ad2c48b
  1. 2
      table/merger.cc

@ -188,7 +188,6 @@ class MergingIterator : public Iterator {
};
void MergingIterator::FindSmallest() {
assert (direction_ == kForward);
if (minHeap_.empty()) {
current_ = NULL;
} else {
@ -199,7 +198,6 @@ void MergingIterator::FindSmallest() {
}
void MergingIterator::FindLargest() {
assert(direction_ == kReverse);
if (maxHeap_.empty()) {
current_ = NULL;
} else {

Loading…
Cancel
Save