Skip to content

Commit

Permalink
compaction_picker.cc: remove check for >=0 for unsigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent e55aea5 commit 676ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/compaction_picker.cc
Expand Up @@ -920,7 +920,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalSizeAmp(
"earliest-file-size %" PRIu64,
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
uint64_t estimated_total_size = 0;
Expand Down

0 comments on commit 676ff7b

Please sign in to comment.