Skip to content

Commit 676ff7b

Browse files
committed
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>
1 parent e55aea5 commit 676ff7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/compaction_picker.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalSizeAmp(
920920
"earliest-file-size %" PRIu64,
921921
version->cfd_->GetName().c_str(), candidate_size, earliest_file_size);
922922
}
923-
assert(start_index >= 0 && start_index < files.size() - 1);
923+
assert(start_index < files.size() - 1);
924924

925925
// Estimate total file size
926926
uint64_t estimated_total_size = 0;

0 commit comments

Comments
 (0)