fix the error message in debug mode

Summary:

my fix patch introduced a new error in debug mode.

Test Plan:

`make` and `make release`
This commit is contained in:
Kai Liu 2013-10-27 23:08:54 -07:00
parent 39c14891b6
commit a1d38a41fd

View File

@ -98,7 +98,7 @@ Status MemTableList::InstallMemtableFlushResults(
// flush was sucessful // flush was sucessful
for (size_t i = 0; i < mems.size(); ++i) { for (size_t i = 0; i < mems.size(); ++i) {
// All the edits are associated with the first memtable of this batch. // All the edits are associated with the first memtable of this batch.
assert(i == 0 || m->GetEdits()->NumEntries() == 0); assert(i == 0 || mems[i]->GetEdits()->NumEntries() == 0);
mems[i]->flush_completed_ = true; mems[i]->flush_completed_ = true;
mems[i]->file_number_ = file_number; mems[i]->file_number_ = file_number;