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
This commit is contained in:
Abhishek Kona 2013-01-08 15:55:06 -08:00
parent d8371ef1f6
commit 2e1ad2c48b

View File

@ -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 {