compaction_picker.cc: remove check for >=0 for unsigned

Fix for:

[db/compaction_picker.cc:923]: (style) Unsigned variable
 'start_index' can't be negative so it is unnecessary to test it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2014-09-29 23:31:47 +02:00
parent e55aea5512
commit 676ff7b1fb

View File

@ -920,7 +920,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalSizeAmp(
"earliest-file-size %" PRIu64, "earliest-file-size %" PRIu64,
version->cfd_->GetName().c_str(), candidate_size, earliest_file_size); version->cfd_->GetName().c_str(), candidate_size, earliest_file_size);
} }
assert(start_index >= 0 && start_index < files.size() - 1); assert(start_index < files.size() - 1);
// Estimate total file size // Estimate total file size
uint64_t estimated_total_size = 0; uint64_t estimated_total_size = 0;