Skip to content

Commit

Permalink
Build fail fix
Browse files Browse the repository at this point in the history
Summary: Build fail fix. Type cast issues.

Test Plan: compiled

Reviewers: sdong, yhchiang

Reviewed By: yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D41349
  • Loading branch information
pcraman committed Jul 7, 2015
1 parent b7a2369 commit 411c8e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/compaction_picker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ uint64_t TotalCompensatedFileSize(const std::vector<FileMetaData*>& files) {

struct InputFileInfo {
FileMetaData* f;
unsigned int level;
unsigned int index;
size_t level;
size_t index;
};

// Used in universal compaction when trivial move is enabled.
Expand Down Expand Up @@ -76,7 +76,7 @@ SmallestKeyHeap create_level_heap(Compaction* c, const Comparator* ucmp) {

InputFileInfo input_file;

for (unsigned int l = 0; l < c->num_input_levels(); l++) {
for (size_t l = 0; l < c->num_input_levels(); l++) {
if (c->num_input_files(l) != 0) {
if (l == 0 && c->start_level() == 0) {
for (size_t i = 0; i < c->num_input_files(0); i++) {
Expand Down

0 comments on commit 411c8e3

Please sign in to comment.