Fix the build with -DNDEBUG.

Dike out the body of VerifyCompactionResult.  With assert() compiled out, the
loop index variable in the inner loop was unused, breaking the build when
-Werror is enabled.
This commit is contained in:
Chris BeHanna 2014-12-22 16:56:27 -06:00 committed by Chris BeHanna
parent 45bab305f9
commit d232cb156b
1 changed files with 2 additions and 0 deletions

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(