Merge pull request #443 from behanna/master

Fix the build with -DNDEBUG.
This commit is contained in:
Yueh-Hsuan Chiang 2014-12-22 23:57:19 -08:00
commit 4d99729741

View File

@ -8896,12 +8896,14 @@ namespace {
void VerifyCompactionResult(
const ColumnFamilyMetaData& cf_meta,
const std::set<std::string>& overlapping_file_numbers) {
#ifndef NDEBUG
for (auto& level : cf_meta.levels) {
for (auto& file : level.files) {
assert(overlapping_file_numbers.find(file.name) ==
overlapping_file_numbers.end());
}
}
#endif
}
const SstFileMetaData* PickFileRandomly(